如何为xcode 4.5默认禁用自动布局? [英] how to disable auto layout by default for xcode 4.5?
问题描述
这里有一个问题: Xcode 4.5破坏XIB?说明了问题和解决方案xcode 4.5创建无法在ios5上运行的nib文件。
A question here: Xcode 4.5 corrupting XIBs? illustrates the problem and solution for xcode 4.5 creating nib files that can not run on ios5.
有没有人有办法阻止自动布局复选框默认为开启?我担心在开发过程中,我会忘记取消选中该框。
Does anyone have a solution to prevent the auto layout checkbox from being defaulted to on? I'm worried that in the process of development, I will forget to unchecked that box.
推荐答案
有一种方法,但它有点令人费解,我可能会补充,不推荐。
There's a way, but it's kinda convoluted and, I might add, not recommended.
您可以打开位于以下位置的模板文件:
You can open your template files located in:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer / Library / Xcode / Templates / File Templates / User Interface /
,在每个目录中都有.xib文件。它们是XML文件,使用文本编辑器打开它们。
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Templates/File Templates/User Interface/
, in each directory, there are .xib files. They are XML files, open them with a text editor.
替换以下行:
<bool key="IBDocument.UseAutolayout">YES</bool>
到
<bool key="IBDocument.UseAutolayout">NO</bool>
我会重复,不推荐。
这篇关于如何为xcode 4.5默认禁用自动布局?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!