我一直在处理我的第一个iOS应用程序,但是当我在模拟器上运行它时,没有构建错误,但是当我加载它时会终止此错误代码
2014-06-06 19:45:56.728 Hello iOS[8512:907] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<ViewController 0x7244190> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key dfwe.'
*** First throw call stack:
(0x1c91012 0x10cee7e 0x1d19fb1 0xb7ae41 0xafc5f8 0xafc0e7 0xb26b58 0x230019 0x10e2663 0x1c8c45a 0x22eb1c 0xf37e7 0xf3dc8 0xf3ff8 0xf4232 0x433d5 0x4376f 0x43905 0x4c917 0x2af5 0x10157 0x10747 0x1194b 0x22cb5 0x23beb 0x15698 0x1becdf9 0x1becad0 0x1c06bf5 0x1c06962 0x1c37bb6 0x1c36f44 0x1c36e1b 0x1117a 0x12ffc 0x282d 0x2755)
libc++abi.dylib: terminate called throwing an exception
它使用&#34;主题1:信号SIGABRT&#34;
标记main.m文件中的这段代码。返回UIApplicationMain(argc,argv,nil,NSStringFromClass([AppDelegate class]));
答案 0 :(得分:0)
使用.xib或故事板查看您使用的视图的所有连接。将会有其中一个连接错误或您从.h中删除该属性但未删除该连接。