本文介绍了如何修复“在 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 4.2 来告诉 Xcode- 仅兼容.不幸的是,项目格式的下拉菜单只建议XCode 3.2-compatible"和XCode 3.1-compatible".

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 之前无法使用自由格式大小模拟指标"?警告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-16 22:22
查看更多