Xcode 4.2在IB中的Tab栏上删除Nav Controller时的警告 [英] Xcode 4.2 Warnings when dropping Nav Controller on Tab Bar in IB

查看:130
本文介绍了Xcode 4.2在IB中的Tab栏上删除Nav Controller时的警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个兼容iOS 4的应用,因此我的部署目标设置为iOS 4.0。

I'm developing an app which is iOS 4 compatible, so my deployment target is set to iOS 4.0.

每当我放弃 UINavigationController UITabBar ,我收到这两个警告:

Whenever I drop a UINavigationController onto a UITabBar, I get these two warnings:


  1. 警告:属性不可用:定义演示文稿上下文在Xcode 4.2之前不可用。

  2. 警告:属性不可用:在5.0之前的iOS版本上定义演示文稿上下文。

  1. warning: Attribute Unavailable: Defines Presentation Context is not available prior to Xcode 4.2.
  2. warning: Attribute Unavailable: Defines Presentation Context on iOS versions prior to 5.0.

UINavigationController 按预期运行,事实上,整个应用程序运行完美。但这两个警告让我疯了!

The UINavigationController functions as expected, in fact, the entire app runs perfectly. But these two warnings are driving me nuts!

此外,当我删除 UINavigationController 时,警告消失。

Also, the moment I delete the UINavigationController the warnings disappear.

推荐答案

只需取消选中属性检查器中的定义上下文复选框即可。 (双击MainWindow.xib,选择导航控制器,然后转到View-> Utilities-> Attributes Inspector。)这将消除警告。

Just uncheck the "Defines Context" checkbox in the attributes inspector. (Double-click on MainWindow.xib, select the navigation controller, then go to View->Utilities->Attributes Inspector.) That'll get rid of the warnings.

这篇关于Xcode 4.2在IB中的Tab栏上删除Nav Controller时的警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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