简体   繁体   English

如何修复“Freeform Size模拟指标在Xcode 4.2之前不可用”警告?

[英]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。

Xcode / IB截图

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在Xcode中使用自由格式的模拟尺寸时,如何使屏幕适应? - How to make the screen adapt when you use a freeform simulated size in Xcode? Xcode模拟大小度量 - Freeform和None设置之间的差异 - Xcode simulated size metric - difference between Freeform and None setting 如何使用Freeform Simulated Size更改scrollView的高度但不更改width - How to use Freeform Simulated Size to change height of scrollView but not width 在 XCode 11 中使用 FreeForm 作为模拟尺寸时,无法将 UIView 安装到 UIViewController 的全尺寸 - Not able to fit UIView to the full size of UIViewController when using FreeForm as Simulated Size in XCode 11 如何在xcode 6.3界面构建器情节提要中默认模拟指标? - How to default simulated metrics in xcode 6.3 interface builder storyboard? 如何在 Xcode Simulator 中修复此图像大小? - How can I fix this image size in Xcode Simulator? [iOS]我可以在代码上更改自由格式UIViewController的大小吗? - [iOS]Can I change the size of a freeform UIViewController on code? Xcode InterfaceBuilder模拟了具有自定义高度的导航栏的指标 - Xcode InterfaceBuilder simulated metrics for navbar with custom height xcode 4.2目标c中的警告 - warnings in xcode 4.2 objective c 更改情节提要模拟指标会影响设备的大小 - Changing storyboard simulated metrics is affecting size on device
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM