this class is not key value coding-compliant for the key xx
来源:互联网 发布:永琪和知画圆房视频 编辑:程序博客网 时间:2024/06/05 17:27
这种情况有5种:
1,加载自定义的tableViewCell的时候总是死在:
XInstrumentOpenCell *cell = [tableViewdequeueReusableCellWithIdentifier:CellTableIdentifier];
解决方法:
因为xib的属性检查器中,没有设置Identifier为cellID
static NSString *CellTableIdentifier = @"cellID";
2,在加载WorkingOrder界面的时候,总是报这个错误:
解决方法:
因为在xib的连接中,有一个变量stateLabel是已经删除了的(用phaseLabel代替了)。虽然代码已经删除了,但是连线还是存在于xib文件中。
删掉这个多余的连接线就好了。
3,检查代码拼写,有时候改了类的名字,但是有些地方没有改过来,就会一直报这种错误,比如
NSArray *secondLevelObjects = [[NSBundlemainBundle] loadNibNamed:@"XOpenPositionContentCell"owner:niloptions:nil];
重点是字串中的类名,一般使用类名定义的时候很好找出来改掉,但是写在字串里面的不容易被发现
4,连线的时候选择的是cell 不是file‘s owner,有时候设置了xib文件的class,但是项目未更新过来,重启xcode。
注意:前四种情况我没有遇到过,看的别人给的,具体行不行我就不知道了。
5,
NSDictionary* dicID = [NSDictionarydictionary];
[dicID setValue:_myCollectionViewIDforKey:@"myCollectionViewID"];
[dicID setValue:[NSNumbernumberWithInteger:_cyModel.modle_s_Id]forKey:@"dbID"];
[dicID setValue:[NSNumbernumberWithInteger:_dataArrayID]forKey:@"dataArrayID"];
[[NSNotificationCenterdefaultCenter] postNotificationName:@"DELTEL"object:niluserInfo:dicID];
- this class is not key value coding-compliant for the key xx
- this class is not key value coding-compliant for the key
- this class is not key value coding-compliant for the key
- 关于 Xcode:this class is not key value coding-compliant for the key
- this class is not key value coding-compliant for the key XXXX
- 报错:this class is not key value coding-compliant for the key closeLotTextField解决方法
- setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key
- setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key
- this class is not key value coding-compliant for the key buttonPressed.' 错误解决方式
- "this class is not key value coding-compliant for the key ..."问题的解决(转)
- this class is not key value coding-compliant for the key digitPressed 解决办法
- this class is not key value coding-compliant for the key
- this class is not key value coding-compliant for the key uiWebView
- this class is not key value coding-compliant for the key scrollView.
- setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key
- setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key
- iOS 错误"This class is not key value coding-compliant for the key"解决方案
- this class is not key value coding-compliant for the key
- 解决listview嵌套时的高度问题
- strcpy函数
- Android ActivityThread(主线程或UI线程)简介
- android 电容屏(四):驱动调试之驱动程序分析篇 -- FocalTech
- JavaScript 标准参考教程
- this class is not key value coding-compliant for the key xx
- 素数与RSA
- 解决iscroll的超链接问题(针对iscroll4)
- nat与ipsec之间的问题
- 第四章:命令行操作&进程控制&性能优化
- Android的DDMS中的Threads的各个字段的含义
- DirectShow中获得摄像头的DevicePath, 得到如下不同效果
- 第36讲-项目二-转着圈加密
- i.MX53 电容触摸屏驱动 - FT5x06