iOS错误处理之[__NSArrayM 某一方法名:]: unrecognized selector sent to instance
2014-12-01 21:42
561 查看
我们在进行iOS开发时,经常会遇到一些某名的错误,程序一运行,就会退到main函数中报错,搞的我们一头雾水!
例如:
这是我们会无从下手处理这样错误,明明调用方法的对象是NSString,为什么出现这样的错误呢
下面我们看看
This is a classic double release error. An object has been released too many times, the memory it occupies has been assigned to another object, so that other object is receiving messages meant for the old object.
这是stackoverflow上面大神给的回答,意思就是我们的对象被release了多次,导致僵尸指针。
此时我们可以打开僵尸指针检测,来确实报告的具体位置。
例如:
-[__NSArrayM isEqualToString:]: unrecognized selector sent to instance 0x661de40 *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSArrayM isEqualToString:]: unrecognized selector sent to instance 0x661de40'
这是我们会无从下手处理这样错误,明明调用方法的对象是NSString,为什么出现这样的错误呢
下面我们看看
This is a classic double release error. An object has been released too many times, the memory it occupies has been assigned to another object, so that other object is receiving messages meant for the old object.
这是stackoverflow上面大神给的回答,意思就是我们的对象被release了多次,导致僵尸指针。
此时我们可以打开僵尸指针检测,来确实报告的具体位置。
相关文章推荐
- iOS编译错误:[__NSCFConstantString count]: unrecognized selector sent to instance 0x1ada02c
- iOS 错误[UITableViewCellContentView setText:]: unrecognized selector sent to instance 0x7fb3a9c300d0'
- iOS 错误: [NSNull length]: unrecognized selector sent to instance 0x110504af0'
- iOS:编译错误[__NSDictionaryM objectAtIndexedSubscript:]: unrecognized selector sent to instance 0xa79e61
- CRASH: -[NSNull length]: unrecognized selector sent to instance错误的处理办法
- CRASH: -[NSNull length]: unrecognized selector sent to instance错误的处理办法
- iOS 【错误:unrecognized selector sent to instance 0x7aa552b0】
- iOS错误提示:-[UITextSelectionView chatTextViewTextChange]: unrecognized selector sent to instance 0x7f
- iOS nil、Nil、NULL、NSNull的区别(null)与<null>的处理: -[NSNull length]: unrecognized selector sent to instance
- iOS -[__NSArrayI addObject:]: unrecognized selector sent to instance~解决方法
- CRASH: -[NSNull length]: unrecognized selector sent to instance错误的处理办法
- CRASH: -[NSNull length]: unrecognized selector sent to instance错误的处理办法
- IOS 错误 [UIWebView cut:]: unrecognized selector sent to instance
- iOS:编译错误[__NSCFNumber length]: unrecognized selector sent to instance 0x8b3c310’ - andy_shen
- [iOS]错误提示:-[UITextSelectionView chatTextViewTextChange]: unrecognized selector sent to instance 0x7f
- ios开发出现 -[__NSDictionaryM isEqualToString:]: unrecognized selector sent to instance 错误
- iOS中变量命名引起的错误错误: [UILabel copyWithZone:]: unrecognized selector sent to instance
- iOS:编译错误[__NSDictionaryM ....]: unrecognized selector sent to instance 0xa79e61
- 出现“unrecognized selector sent to instance”问题原因之一及解决方法。
- 错误: [UILabel copyWithZone:]: unrecognized selector sent to instance