Xcode 4.2 在 IB 的选项卡栏上放置导航控制器时的警告

Xcode 4.2 Warnings when dropping Nav Controller on Tab Bar in IB(Xcode 4.2 在 IB 的选项卡栏上放置导航控制器时的警告)
本文介绍了Xcode 4.2 在 IB 的选项卡栏上放置导航控制器时的警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

我正在开发一个与 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 版本上定义演示上下文.

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 的选项卡栏上放置导航控制器时的警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

相关文档推荐

Facebook Requests Dialog: Frictionless Requests in native iOS app possible?(Facebook 请求对话框:本机 iOS 应用程序中的无摩擦请求可能吗?)
Difference between iPhone Simulator and Android Emulator(iPhone模拟器和Android模拟器之间的区别)
iOS 6 (iPhone/iPad) Image Upload quot;Request Body Stream Exhaustedquot; with NTLM/Windows Authentication(iOS 6 (iPhone/iPad) 图片上传“请求正文流用尽使用 NTLM/Windows 身份验证)
Can#39;t change target membership visibility in Xcode 4.5(无法更改 Xcode 4.5 中的目标成员身份可见性)
How to remove Address Bar in Safari in iOS?(如何在 iOS 中删除 Safari 中的地址栏?)
iOS 5 SDK is gone after upgrade to Xcode 4.5(升级到 Xcode 4.5 后,iOS 5 SDK 消失了)