The button does not appear in landscape mode in iOS 8

I have one button, I set its restrictions to "Horizontal Center" and "Vertical Center". He appears in the center, as expected, in portrait mode. But at the moment when I turn the device into landscape mode, the button disappears, and the status bar is also not visible.

+4
source share
3 answers

Here is a screen that shows the restriction needed to display the button in the center in both landscape and portrait mdoe enter image description here

This is the easiest thing I've ever posted to stackoverflow. Check the code again and see if there are other restrictions that you have applied.


Note. IOS8 is hiding in landscape mode in the status bar, and if you want to display it in landscape mode, please follow my answer.
0
source

Have you set the height and width UIButton ? if you do not add height and width constraints toUIButton

0
source

, . , wwdc 2014 " UIKit".

0
source

All Articles