我有一个按钮,我将其约束设置为“水平中心”和“垂直中心”。在纵向模式下,它按预期出现在中心。但是当我将设备旋转到横向模式时,按钮消失,状态栏也不可见。
Here is a screen which show constraint needed to show button in centre in both landscape and portrait mdoe
这是我在 stackoverflow 上发布过的最简单的事情
请再次检查您的代码,看看是否有任何其他限制。
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 https://stackoverflow.com/questions/24329503/on-ios8-displaying-my-app-in-landscape-mode-will-hide-the-status-bar-but-on-ios/25671226#25671226.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)