How do I move the UIView to the "bottom" so that the next UIView displays?

cocoa-touch, ios, iphone, objective-c, uiview

Solution

Hmmm...

- (void)insertSubview:(UIView *)view atIndex:(NSInteger)index;

Might be what you're after? Alternatively -

- (void)insertSubview:(UIView *)view belowSubview:(UIView *)siblingSubview;

Though you could avoid removing the view all together (if you don't need to for any other reason) by calling sendSubviewToBack: -

- (void)sendSubviewToBack:(UIView *)view;

Problem

I want to "remove" a UIView from a superview and add it again at the end... but at the "bottom" of the rest of the UIviews that belong to the superview. Is this possible? Any help is very appreciated!

Original source