Xcode 4.5 + UIScrollView:看不到支柱和弹簧(OSX 10.8 Mountain Lion) [英] Xcode 4.5 + UIScrollView: Cannot see struts and springs (OSX 10.8 Mountain Lion)

查看:107
本文介绍了Xcode 4.5 + UIScrollView:看不到支柱和弹簧(OSX 10.8 Mountain Lion)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

免责声明: iOS开发全新。对我很轻松。

Disclaimer: Brand new to iOS dev. Go easy on me.

在Xcode 4.5中有一个有趣的情况。我的尺寸检查器如下所示:

Got a funny situation in Xcode 4.5. My Size Inspector looks like this:

......我根本看不到struts和spring区域

真正奇怪的是,当我点击连接检查器之类的东西时,我确实看到了支柱和弹簧区域,但只是一瞬间,当我回来时它就消失了。

The really strange part is that when I click away to something like the Connections inspector I do see the struts and springs area, but only for a split second, and it is gone when I come back.

这是正常的吗?有没有一种简单的方法来纠正这种行为?

Is this normal? Is there an easy way to correct this behavior?

推荐答案

在Xcode 4.5中,对于iOS 6和OSX 10.8开发,AutoLayout正在默认情况下启用。

In Xcode 4.5, for iOS 6 and OSX 10.8 development, AutoLayout is being enabled by default.

要关闭它,请打开xib文件并单击空白处(不在视图或任何组件上)。在检查器面板上,选择第一个选项卡,然后删除使用Autolayout复选框。你的弹簧和支柱会回来。

To turn it off, open your xib file and click on a blank spot (not on a view or any component). On the inspector panel, select the first tab and remove the "Use Autolayout" checkbox. Your springs and struts will be back.

这篇关于Xcode 4.5 + UIScrollView:看不到支柱和弹簧(OSX 10.8 Mountain Lion)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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