我在应用程序中有两个 UITextFields 作为 IBOutlets,我已经从文件所有者连接到这些...当我运行 Build and Go 时,iphone 模拟器崩溃了......并且在控制台中(调试后)......它的显示我跟...
2009-08-22 18:11:40.869 Control_Fun[1138:20b] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UIViewController _loadViewFromNibNamed:bundle:] loaded the "Control_FunViewController" nib but the view outlet was not set.'
但是,我没有明确定义为视图的任何插座(IBOutlet)......这是隐藏的吗?当我控制单击文件的所有者并将其拖动到 UITextFields 时,它在灰色弹出菜单中为我提供了三个选项以连接到
1. nameField (declared as IBOutlet property in the header file)
2. numberField (declared as IBOutlet property in the header file)
3. view (where is this coming from?)
谢谢