【发布时间】:2010-05-20 21:08:59
【问题描述】:
好的,所以我实际上必须使用以下教程在 UITabBarController 中添加 UINavigationBar:http://twilloapp.blogspot.com/2009/03/how-to-embed-navigation-controller.html
但现在的问题是,每当我在其中一个视图中添加新按钮时,它都会崩溃。
例如:
在我添加的第一个名为 FirstViewController 的视图中:
IBOutlet UIButton *test;
比我还创造的:
- (IBAction) doSomething:(id)sender;
我在界面生成器中将测试按钮与 UI 连接起来。但是当我跑步时,我得到:
*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIViewController 0x3b12e80> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key test.'
不知道这是怎么回事。
有人知道解决办法吗?
另外,有谁知道我在哪里可以为这些应用程序找到好的预构建模板,这样我就可以开始工作,而不是编辑和设置。
谢谢
【问题讨论】:
标签: iphone xcode uinavigationcontroller uitabbarcontroller