开发者

Why the height of main window is 480 instead of 460 with status bar

Shouldn't it be 460 when the status bar whose height is 20 is shown?

So it turns out that the status bar is ON the main window instead开发者_高级运维 of ABOVE it?

In contrast, view height is set to 460 in IB when status bar is turned on.


Depends how you're setting up the window. If you set its frame to [UIScreen mainScreen].bounds, you get the full 320x480; if you use .applicationFrame, you get 320x460 (or 320x440, if the status bar's double-height, as when the user's in a call, making a voice recording, or using tethering or Nike+).


The status bar is ON the mainWindow. Views that you create on mainWindow, can extend under the status bar or abut it.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜