1. Welcome to the new MacRumors forums. See our announcement and read our FAQ

particular subview always on top

Discussion in 'iPhone/iPad Programming' started by chhoda, Dec 4, 2008.

  1. macrumors 6502

    #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
     
  2. macrumors 6502a

    #2
    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.
     

Share This Page