xcode 4.5,界面构建器中的视图大小不可编辑

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12653786/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-13 15:49:23  来源:igfitidea点击:

xcode 4.5, view size not editable in interface builder

iosxcodeinterface-builder

提问by TieDad

I started my project since xcode 4.4, and I have created several view controllers with interface builder (with xib files). Several days ago, I upgraded the xcode to version 4.5. Today, I suddenly found that I could modify view size anymore in interface builder. Is this an intended feature of xcode 4.5 or is it a bug of xcode 4.5?

我从 xcode 4.4 开始我的项目,我已经创建了几个带有界面构建器(带有 xib 文件)的视图控制器。几天前,我将xcode升级到了4.5版本。今天突然发现可以在interface builder里修改view size了。这是 xcode 4.5 的预期功能还是 xcode 4.5 的错误?

回答by matt

A view has a Size popup menu in its Simulated Metrics panel (in the Attributes inspector); set that to Freeform and the view becomes manually resizable.

视图在其模拟指标面板(在属性检查器中)中有一个大小弹出菜单;将其设置为 Freeform,视图将变为手动调整大小。

回答by Jorge Vicente Mendoza

I had the same impression the first time i attempted to resize a view. You just have to go to the INSPECTOR : Simulated Metrics :and change the "Size" to "FreeForm" and there you'll be able to resize your view as much as you want! hope this helps

我第一次尝试调整视图大小时也有同样的印象。您只需转到INSPECTOR : Simulated Metrics :并将“大小”更改为“ FreeForm”,然后您就可以根据需要调整视图大小!希望这可以帮助

回答by RoyGal

And in XCode 5.x, it is completely removed...

而在 XCode 5.x 中,它被完全删除了......

...not really, but...

......不是真的,但是......

...look below the window, and you will find 4 anonymous icons where you can go bananas with adjusting view behaviour etc.

...查看窗口下方,您会发现 4 个匿名图标,您可以在其中调整视图行为等。

It sure took me a while to find, but now that I know where to look...

我确实花了一段时间才找到,但现在我知道去哪里找了……