iPhone应用程序崩溃-错误? [英] iPhone App Crash - Error?

查看:74
本文介绍了iPhone应用程序崩溃-错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是制作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:

  1. Ctrl +单击界面构建器文件,打开为->源代码
  2. Cmd + F 搜索" imageView "
  3. 删除相应的 XML元素.例如,您可能会擦除整个文本块:

  1. Ctrl + Click the interface builder file, Open As -> Source Code
  2. Press Cmd + F to search for "imageView"
  3. 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屋!

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