无法在IB中调整UIView的大小 [英] Can't resize UIView in IB

查看:110
本文介绍了无法在IB中调整UIView的大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能很简单,但我无法理解为什么我无法在Interface Builder中的xib中调整UIView的大小。

Probably something simple, but I can't figure why I cannot resize a UIView in a xib in Interface Builder.

我在xcode和尺寸检查器中创建了一个新的视图XIB,宽度和高度被禁用并且灰显为320×460.这很奇怪,因为我可以改变其他两个视图的大小(与其他两个标签栏项目相关联)。

I created a new view XIB in xcode and in the size inspector, the width and height are disabled and grayed out to 320 by 460. This is strange since I can change the size for the other two views (associated with the other two tab bar items).

我不确定这是否与此有关,但我最近将sdk更新为3.

I am not sure if this has anything to do with but I recently updated the sdk to 3.

谢谢!

推荐答案

我认为在模拟任何用户界面元素(如Interface Builder中的状态栏)时无法编辑大小。如果启用了模拟元素,您可以尝试关闭模拟元素。不完全确定为什么会这样,所以希望得到任何知道原因的人的反馈 - 必须有充分的理由。

I think that you cannot edit the size while simulating any user interface elements such as the status bar in Interface Builder. You could try turning the simulated elements off if any are enabled. Not exactly sure why this is, so would appreciate feedback from anyone who knows why exactly this is - there must be a good reason.

这篇关于无法在IB中调整UIView的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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