views:

23

answers:

1

Hello, I would like to find a way for the following problem: If I add views (annotation views) to a parent view (map view) I can't have their positions immediately but at some point in the furute (when the view becomes visible, makes it layout, whatever ...). I would like to be triggered if the position of my subviews becomes available (I mean sview1.center.x, sview1.center.y). Is there a smart way?

A: 

There is one possibile way:

Use the UIView's subviews function (it returns an NSArray containig all the subviews) and enumerate through it and check all the views

tadej5553
Hmm ... but this way has nothing to do with notifications or triggering.
georgij
If the view's position is enabled, then send a message.If you want to check that frquently, use a timer
tadej5553