uiview
's are displayed in the order they are stacked. One can change this to say were to insert the new uiview
, which in your case is a uibutton.
One way of doing that is by creating a IBOUtlet
of the uibutton
and adding that button instance as a subview/newview above an existing uiview
.
CODE:
[self.view insertSubview:<new Uiview> aboveSubview:<existing uiview>];
Also if you are not able to figure out the order of the uiview
, then you can check that in xcode
- When running the project in debug mode under debug window there is a button(highlighted in below image) Debug View Hierarchy, you need to click that. (highlighted in below image)

- After that you will able to see all the
views
rendering on the screen at current instance, using this feature you will be able to understand were is your new uiview
in the uiview stack order
(shown below).
