无法识别的选择器发送到实例 [英] unrecognized selector sent to instance

查看:103
本文介绍了无法识别的选择器发送到实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我添加了索引搜索到核心数据支持的UITableView。搜索工作正常,但是后导航回到tableView我得到这个错误:


- [NSSQLRow controllerDidChangeContent: ] :无法识别的选择器发送到实例0x815edf0




感谢您的帮助

解决方案

3),启用:



在Objective-C例外中运行>停止



在Debug中运行程序。 / p>

最终发生的是一个(objc)对象被请求执行一个不响应的消息(即未实现)。

$ b $通常,这发生在程序员的错误(至少对我来说),例如作为另一个类型传递的参数,通过cast,id或objc_object容器(例如任何集合类 - NSArray,NSSet,NSDictionary)。



有时,如果您忘记实现实例方法,则会发生这种情况。



如果你是针对没有实现实例方法的软件的早期版本进行测试的话,就会发生这种情况它是在以下版本中添加的)。


I added an index search to a core data backed UITableView. the search works fine, however after navigating back to the tableView I get this error:

-[NSSQLRow controllerDidChangeContent:]: unrecognized selector sent to instance 0x815edf0

I can post more code if this is too little information to go on.

thanks for any help

解决方案

In Xcode (3), enable:

Run > Stop on Objective-C Exceptions

run your program in Debug.

Ultimately what is happening is an (objc) object is requested to perform a message which it does not respond to (i.e. is not implemented).

Typically, this happens as a programmer's mistake (at least, for me), such as an argument passed as another type, which slips through a cast, id, or objc_object container (e.g. any collection class - NSArray, NSSet, NSDictionary).

Sometimes this happens if you forget to implement the instance method.

Sometimes this happens if you are testing against an earlier release of the software, which did not implement the instance method (i.e. it was added in a following release).

这篇关于无法识别的选择器发送到实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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