我想我找到了原因:IB 中的文档信息窗口有一个警告:“'Selected Navigation Controller (Second)' has nib name property set to 'SecondView.nib', but this view controller is not to have its view以这种方式设置。”
真可惜。
我已经在 Interface Builder 中构建了 nib,它具有UITabBarController顶层并在UINavigationControllers 之间切换。
当所有内容都在一个nib文件中时它工作正常,但我想nib为 s 使用单独的文件UINavigationController。
从 Apple 的 TabBar 模板开始,如果我只是将 SecondView 的类更改为UINavigationController,这一切都会中断:
我得到的只是:
// imgur has lost the image, sorry //
UINavigationController是否可以在不以编程方式设置所有内容的情况下拥有单独的文件?
我想TabBarController处理笔尖的装卸。