我花了几个小时尝试从另一个NIB加载子类UINavigationController
,同时录制tabBarItem
。有没有人有任何想法,如何正确地做到这一点?
最新测试:
MainWindow.xib - UITabBarController
有4个标签,一个名为News,设置为“Navigation Controller”。选择“新闻”选项卡时 - 类标识:NewsNavigationController
,NIB名称:NewsView。
从NewsView加载的视图出现在Window
中运行此变体会导致:
加载123209堆栈帧...(16%)并计数:)删除类 身份以崩溃告终:***由于未被捕获而终止应用程序 异常'NSUnknownKeyException',原因:'[setValue:forUndefinedKey:]:这个类不是键值 符合编码的关键newsTableViewController。'
很明显,Class indentity是要走的路,但为什么它对我不起作用?