此类不是密钥选择器的密钥值编码兼容

时间:2013-07-23 15:22:03

标签: ios uiviewcontroller

我在应用程序中添加了一个视图,我从按钮打开,无法找到我做错的事。

我三重检查了dataSource&委托已连接到文件所有者

*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<HelpViewController 0xab58980> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key Picker.'

我的viewcontroller.h中的代码

@interface LanguageSelectionViewController : UIViewController {

    IBOutlet UILabel *label;
    IBOutlet UIPickerView *Picker;
    NSArray *PickerData;
}

@property (retain, nonatomic) IBOutlet UIPickerView *Picker;
@property (retain, nonatomic) NSArray *PickerData;
@end

任何人都有正确方向的解决方案或小费吗?

1 个答案:

答案 0 :(得分:2)

转到你的故事板点击helpviewcontroller(整个事情让你在视图周围有一个蓝色轮廓)现在用实用工具栏(右边的工具栏)点击你应该看到的箭头(最右边的图标)!在其中一个连接上标记。删除它,它应该工作。