开发者

Nib file ignoring status bar on load. Why?

开发者 https://www.devze.com 2023-02-23 03:06 出处:网络
I\'ve got a UIViewController loaded from a NIB at startup. The status bar overlaps the view and there is a status bar sized margin at the bottom of the screen. When the device rotates, the problem cor

I've got a UIViewController loaded from a NIB at startup. The status bar overlaps the view and there is a status bar sized margin at the bottom of the screen. When the device rotates, the problem corrects i开发者_C百科tself. What could be causing this?


Try setting the frame of the controller's view to:

[[UIScreen mainScreen] applicationFrame]

I've run into this a few times and this is the only real way I know of to fix it. There might be a better way.

0

精彩评论

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