此类不符合键选择器的键值编码 [英] This class is not key value coding-compliant for the key Picker

查看:32
本文介绍了此类不符合键选择器的键值编码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我向我的应用添加了一个视图,我通过按钮打开该视图,但找不到我做错了什么.

I added a view to my app that I open from a button and can't find what I'm doing wrong.

我三重检查了数据源 &委托连接到文件的所有者

I triple checked that dataSource & delegate are connected to File's Owner

*** 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 中的代码

The code in my 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

有人找到正确方向的解决方案或提示吗?

Anyone got a solution or a tip in the right direction?

推荐答案

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

Go to your storyboard click the helpviewcontroller (the whole thing so you have a blue outline around the view) now with the utility toolbar (toolbar on the right) click the arrow (the right most icon) you should see a ! mark on one of the connections. Delete that and it should work.

这篇关于此类不符合键选择器的键值编码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆