[英]How can I fix “Freeform Size simulated metrics are not available prior to Xcode 4.2” warnings?
Since a couple of weeks, I've been using XCode 4.2 with projects created with previous XCode 3.x versions. 几个星期以来,我一直在使用XCode 4.2和以前的XCode 3.x版本创建的项目。
When creating some custom iPad views, I often use the "freeform" attribute of Interface Builder to be able to have views with an arbitrary size. 在创建一些自定义iPad视图时,我经常使用Interface Builder的“自由形式”属性来获得任意大小的视图。
But then, I get build the following build warnings: "warning: Attribute Unavailable: Freeform Size simulated metrics are not available prior to Xcode 4.2." 但随后,我构建了以下构建警告:“警告:属性不可用:在Xcode 4.2之前,Freeform Size模拟指标不可用。”
My question is: how can I fix these warnings? 我的问题是:我该如何修复这些警告?
ps: First, I assumed it meant my project wouldn't be backward-compatible with earlier versions of XCode (which doesn't bother me at all) and tried to tell Xcode so, by setting the Project Format to XCode 4.2-compatible only. ps:首先,我认为这意味着我的项目不会向后兼容早期版本的XCode(根本不会打扰我),并尝试通过将项目格式设置为仅与XCode 4.2兼容来告诉Xcode 。 Unfortunately, the dropdown menu for the project format only suggests "XCode 3.2-compatible" and "XCode 3.1-compatible". 不幸的是,项目格式的下拉菜单仅表示“XCode 3.2兼容”和“XCode 3.1兼容”。
Open the .xib file in question and show the Utilities pane. 打开有问题的.xib文件并显示“实用工具”窗格。 Click on the File Inspector tab and under Interface Builder Document you'll see a Development field. 单击File Inspector选项卡,在Interface Builder Document下,您将看到一个Development字段。 Change it to Xcode 4.2. 将其更改为Xcode 4.2。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.