按钮没有出现在横向模式中的iOS 8 [英] Button not appearing in landscape mode in iOS 8
本文介绍了按钮没有出现在横向模式中的iOS 8的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个按钮,我设置它的约束水平居中和垂直居中。这是出现在中心预计在纵向模式。但是,当我在设备旋转为横向模式下的瞬间,按钮消失,状态栏也看不到的。
I have one button, i set it's constraints to "Horizontal centre" and "Vertical centre". It is appearing in centre as expected in portrait mode. But the moment when i rotate the device to landscape mode, the button disappears and status bar also not visible.
推荐答案
这里是一个需要显示在横向和纵向MDOE中心显示按钮约束的屏幕
Here is a screen which show constraint needed to show button in centre in both landscape and portrait mdoe
这是我曾经张贴在计算器结果一个最简单的事情
请再次检查您的code和看有没有其他的限制你必须适用。结果
注意:在iOS8上的状态栏隐藏在横向模式下,如果你想在横向模式下显示它请按照我的答案在这里<一个href=\"http://stackoverflow.com/questions/24329503/on-ios8-displaying-my-app-in-landscape-mode-will-hide-the-status-bar-but-on-ios/25671226#25671226\">link.
This is a simplest thing i ever post in stackoverflow
Please check your code again and see is there any other constrains you had apply.
Note : In iOS8 status bar is hide in landscape mode and if you want to display it in landscape mode please follow my answer over here link.
这篇关于按钮没有出现在横向模式中的iOS 8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文