问题
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