[英]iPhone status bar showing over the top of UIView
I'm having an issue removing/hiding the status bar. 我在删除/隐藏状态栏时遇到问题。 I have looked at other posts and tried using the following line in my code:
我查看了其他帖子,并尝试在代码中使用以下行:
self.wantsFullScreenLayout = YES;
This seems to work to some extent, however I can still see the status bar, except now it's on top of my view: 这似乎在某种程度上可行,但是我仍然可以看到状态栏,只是现在它位于我的视图之上:
Does anyone have any ideas on how to fix this? 有人对如何解决这个问题有任何想法吗? I've never come across this problem before.
我从来没有遇到过这个问题。
In info.plist I added UIStatusBarHidden and I set it to true. 在info.plist中,我添加了UIStatusBarHidden并将其设置为true。 This resolved the issue.
这解决了问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.