PDA

View Full Version : particular subview always on top




chhoda
Dec 4, 2008, 04:10 AM
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



jnic
Dec 4, 2008, 04:44 AM
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.