Interface Builder Off Vertically

让人想犯罪 __ 提交于 2020-02-02 07:15:57

问题


I'm using Xcode 4.0 and when building my view in Interface Builder everything looks great. When I run my app with the simulator or iOS device the whole view is off vertically (showing a white bar at bottom). It looks to be off by 20 pixels. TabBar, Labels, Tableview, Text and background image are all shifted up. Any ides? Thanks


回答1:


Are you running fullscreen? I'm guessing that you've set the Status Bar to 'None' which means the size of your view in the Interface Builder is wrong.

In your *ViewController.xib when you set the Status Bar to 'None' it sets the height of the view to be 460, when it should be 480.



来源:https://stackoverflow.com/questions/5409163/interface-builder-off-vertically

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!