Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

chhoda

macrumors 6502
Original poster
Oct 25, 2008
285
1
I have a view and want a particular subview always on top. After adding this subview i am adding and removing a lot of subviews while running my application. So basically I want this subview always on top. will i have to do [myview bringSubviewToFront:mySubview] every time i add a subview ?

is there any function like alwaysontop ?

ch
 
Except in certain special cases, they'll be layered in the order in which you add them. You might find sendSubviewToBack more useful in some instances, but basically, yes, you'll have to set the layering yourself if it isn't correct by default.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.