NSArrayI insertObject:atIndex:]: unrecognized selector sent to instance 0x9c754c0 2013-06-19 00:16:0
2013-11-12 18:10
936 查看
NSUInteger count=indexPath.row+1; NSMutableArray *arCells=[NSMutableArray array]; for(NSDictionary *dInner in ar ) { [arCells addObject:[NSIndexPath indexPathForRow:count inSection:0]]; if (tableView == self.searchDisplayController.searchResultsTableView) //crashing // [self.FilterArray insertObject:dInner atIndex:count++]; else [self.arForTable insertObject:dInner atIndex:count++]; [insertedIndexPath addObject:[NSIndexPath indexPathForRow:count inSection:0]]; }
This
error 'unrecognized selector sent to instance' typically mean the object receiving the message isn't what you think it is. And typically, this means the address got dereferenced and reassigned to another object. So you have a retain count problem somewhere
Sounds
like your
@propertydeclaration
for
arForTabledoes
not have a strong attribute
so there's no retention
it's
crashing for Filterarray only and property have the retain attribute
This
error 'unrecognized selector sent to instance' typically mean the object receiving the message isn't what you think it is. And typically, this means the address got dereferenced and reassigned to another object. So you have a retain count problem somewhere
NSMutableArray
相关文章推荐
- 在label中设置上下标
- object-c runloop
- Flex通过RemoteObject调用java实例:flex传入参数以及接收java返回结果
- Objective-C使用@dynamic和@synthesize
- 黑马程序员:对象字节流:ObjectInputStream、ObjectOutputStream
- CoreText 相关知识
- object-c runtime(三)
- object-c runtime (二)
- object-c runtime (一)
- Q_OBJECT宏的作用
- spring/struts异常exception starting filter struts2 java.lang.NullPointerException ..SpringObjectFacory
- Objective-C 如何让非等宽的数字和空格对齐
- Effective Objective-C [下]
- Effective Objective-C [上]
- Objective-c对c语言都做了哪些扩展?
- ObjectSNMP
- 使用UIWebView时objective-c与javascript互相调用 1
- 在Salesforce中对Object实现Trigger的绑定
- 在Eclipse中用图形界面的方式获取Salesforce中Object的Query语句
- Object-C(iphone)开发入门