【发布时间】:2010-10-27 09:05:09
【问题描述】:
我想我找到了原因:IB 中的文档信息窗口有一个警告:“'Selected Navigation Controller (Second)' has nib name property set to 'SecondView.nib', but this view controller is不打算以这种方式设置其视图。”
无赖。
我在 Interface Builder 中构建了 nib,它的顶层有 UITabBarController,并在 UINavigationControllers 之间切换。
当所有内容都在一个 nib 文件中时,它工作正常,但我想为 UINavigationControllers 使用单独的 nib 文件。
从 Apple 的 TabBar 模板开始,如果我只是将 SecondView 的类更改为UINavigationController,一切都会中断:
我得到的只是:
// imgur has lost the image, sorry //
是否可以在不以编程方式设置所有内容的情况下为UINavigationController 提供单独的文件?
我希望TabBarController 处理笔尖的装卸。
【问题讨论】:
-
嘿,这里有一些个人照片而不是截图。你能修好吗? :)
标签: iphone cocoa-touch xib