konyv12
konyv12

Reputation: 776

Buttons behind my view? iOS

I have the following (buttons not show up when running the app somehow-they are behind my view, which is a Google Maps view by the way):

enter image description here

If I click on either buttons, go to Editor/Arrange there is no possibility of sending/arranging the buttons forward, only backward. Why is this happening? How can I make my buttons visible?

Upvotes: 0

Views: 449

Answers (3)

user5890979
user5890979

Reputation:

You have added the UIButtons inside the mapView as subviews. Move them outside of it, simply drag them out of the MapView and add them below it on the left column tree.

When you move them out, make sure they are BELOW the MapView in the left column.

The ones below on the left tree are the ones that end up on TOP.

Upvotes: 1

Wajih
Wajih

Reputation: 4383

You have to put your UIButtons out side the Map view, Something like this:

enter image description here

Upvotes: 0

Mostafa Sultan
Mostafa Sultan

Reputation: 2438

you can use this function

[self.myButton.superview bringSubviewToFront:self.myButton];

this will make myButton on top of all it's superview's views

apply it in the way you need it

Upvotes: 0

Related Questions