In interface builder, there are layout options to send to back or send to front any elements such as UIButton
, UIImage
, UILabel
etc...
You could use:
[self.view bringSubviewToFront:myButton];
There are a number of methods of UIView
that allow you to modify the view hierarchy.
Since your views are already inserted into your superview, you could easily call bringSubviewToFront:
once for each view in whatever order you like.