开发者

Nib file ignoring status bar on load. Why?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜