本文介绍了忽略“属性不可用” - Xcode4中的警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为工具栏项目使用了很多自定义标识符,这在Xcode4中是很好的,但是当我构建项目时,它给了我一些警告:

I'm using a lot of "custom identifiers" for Toolbar Items, which is fine in Xcode4, but it gives me a bunch of warnings when I build the project:

一种方式来忽略这些警告在Xcode4?当我搜索真正的警告和错误时,这很麻烦。

Is there a way to ignore these warnings in Xcode4? It's pretty messy when I search for "real" warnings and errors.

推荐答案

点击您的xib文件。在属性上,您将看到以下部分:

Click on your xib file. On the properties you will see the following section:

在其中开发更改为Interface Builder 3.2,并且您不应再收到这些警告。

Where it says "Development" change that to Interface Builder 3.2 and you should no longer receive those warnings.

UPDATE for current iOS Xcode users:
在iOS 4.3中 - IB内置在IDE中,右侧选择xib文件后将有一些图标,第一个图标称为文件检查器(看起来像

UPDATE for current iOS Xcode users:In iOS 4.3 - IB is built into the IDE, and on the right after selecting the xib file there will be some icons, the first icon is called "File Inspector" (looks like a page with a fold in it) that is where the section resides (see below).

这篇关于忽略“属性不可用” - Xcode4中的警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-28 17:07