我有一个NSFetchedResultController与不同的部分.
我尝试使用UISearchDisplayController进行搜索时遇到崩溃:
我尝试使用UISearchDisplayController进行搜索时遇到崩溃:
*** Assertion failure in -[UITableViewRowData rectForRow:inSection:],/SourceCache/UIKit/UIKit-2372/UITableViewRowData.m:1630 *** Terminating app due to uncaught exception 'NSInternalInconsistencyException',reason: 'request for rect at invalid index path (<NSIndexPath 0x1d2c4120> 2 indexes [0,1])'
我检查并且我的搜索数组确实有两个条目(预期的结果):
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
它返回1
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
它返回2
有趣的是,如果我只有一个部分,它的工作完美.
请帮助!
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。