开发者

iPhone status bar showing over the top of UIView

开发者 https://www.devze.com 2023-04-12 19:20 出处:网络
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:

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.wan开发者_JAVA技巧tsFullScreenLayout = 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:

iPhone status bar showing over the top of UIView

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. This resolved the issue.

0

精彩评论

暂无评论...
验证码 换一张
取 消