我尝试使用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
有趣的是,如果我只有一个部分,它的工作完美.
请帮助! 总结
以上是内存溢出为你收集整理的ios – 在两部分搜索时崩溃全部内容,希望文章能够帮你解决ios – 在两部分搜索时崩溃所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)