如何修复“自由形式大小模拟指标在Xcode 4.2之前不可用”警告? [英] How can I fix "Freeform Size simulated metrics are not available prior to Xcode 4.2" warnings?

查看:187
本文介绍了如何修复“自由形式大小模拟指标在Xcode 4.2之前不可用”警告?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

几周以来,我一直在使用XCode 4.2和以前的XCode 3.x版本创建的项目。

Since a couple of weeks, I've been using XCode 4.2 with projects created with previous XCode 3.x versions.

创建一些自定义iPad视图时,我经常使用Interface Builder的freeform属性来获得任意大小的视图。

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.

然后,我构建了以下构建警告:警告:属性不可用:自由形式大小模拟指标在Xcode 4.2之前不可用。

But then, I get build the following build warnings: "warning: Attribute Unavailable: Freeform Size simulated metrics are not available prior to Xcode 4.2."

我的问题是:如何修复这些警告?

My question is: how can I fix these warnings?

ps:首先,我认为这意味着我的项目不会向后兼容早期版本的XCode(根本不会打扰我)并尝试通过设置项目告诉Xcode格式化为XCode 4.2仅兼容。不幸的是,项目格式的下拉菜单仅建议XCode 3.2兼容和XCode 3.1兼容。

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. Unfortunately, the dropdown menu for the project format only suggests "XCode 3.2-compatible" and "XCode 3.1-compatible".

推荐答案

打开有问题的.xib文件并显示实用工具窗格。单击File Inspector选项卡,在Interface Builder Document下,您将看到一个Development字段。将其更改为Xcode 4.2。

Open the .xib file in question and show the Utilities pane. Click on the File Inspector tab and under Interface Builder Document you'll see a Development field. Change it to Xcode 4.2.

这篇关于如何修复“自由形式大小模拟指标在Xcode 4.2之前不可用”警告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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