Interface Builder Off垂直关闭 [英] Interface Builder Off Vertically

查看:82
本文介绍了Interface Builder Off垂直关闭的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Xcode 4.0,在Interface Builder中构建我的视图时,一切看起来都很棒。当我使用模拟器或iOS设备运行我的应用程序时,整个视图垂直关闭(底部显示一个白色条)。它看起来像是20像素。 TabBar,标签,Tableview,文本和背景图像都向上移动。任何想法?谢谢

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

推荐答案

你在全屏运行吗?我猜你已经将状态栏设置为'无',这意味着界面生成器中视图的大小是错误的。

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.

在你的* ViewController中。当状态栏设置为无时,它将视图的高度设置为460,当它应为480时。

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.

这篇关于Interface Builder Off垂直关闭的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆