iPhone应用程序崩溃-错误? [英] iPhone App Crash - Error?
问题描述
我是制作iPhone应用程序的新手,所以我不知道此错误意味着什么?
Im new im making in making iPhone apps so i have no idea what this error means ?
我看到了另一则错误消息,但我想不出正确的方法.
I saw another post with this error but i couldn't figure out how to get it right..
我收到此错误:
由于未捕获的异常而终止了应用程序 'NSUnknownKeyException',原因:'[ setValue:forUndefinedKey:]:此类不适用于以下代码的键值编码 关键ImageView."
Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key ImageView.'
我不知道这是什么意思? 0.o
and i have no clue what this means ? 0.o
这里可以帮我吗?
谢谢!
推荐答案
在删除我在Interface Builder中创建的对象后,我遇到了这个问题.删除对象并不能清除其产生的所有代码工件.
I ran into this issue after deleting an object I created in Interface Builder. Deleting the object did not erase all of the code artifacts it had produced.
这是我在XCode 4.3中删除不需要的信息的方式:
Here is how I removed the unwanted information in XCode 4.3:
- Ctrl +单击界面构建器文件,打开为->源代码
- 按 Cmd + F 搜索" imageView "
-
删除相应的 XML元素.例如,您可能会擦除整个文本块:
- Ctrl + Click the interface builder file, Open As -> Source Code
- Press Cmd + F to search for "imageView"
Delete the corresponding XML element. For example, you might erase this entire block of text:
<outlet property="imageView" destination="9W1-Bu-YFJ" id="9xu-Y0-uYk"/>
重复必要时重复步骤2-3
Repeat steps 2-3 as necessary
这篇关于iPhone应用程序崩溃-错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!