国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁(yè) > 學(xué)院 > 開發(fā)設(shè)計(jì) > 正文

searchDisplayController時(shí)引起的數(shù)組越界

2019-11-14 18:37:58
字體:
供稿:網(wǎng)友

當(dāng)  [searchDisplayController.searchResultsTableView setSeparatorStyle:UITableViewCellSeparatorStyleNone] 時(shí), 發(fā)送了崩潰

錯(cuò)誤提示如下:

Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayI objectAtIndex:]: index 1 beyond bounds [0 .. 0]'*** First throw call stack:(0   CoreFoundation                      0x000000010c6c6c65 __exceptionPReprocess + 1651   libobjc.A.dylib                     0x000000010c35fbb7 objc_exception_throw + 452   CoreFoundation                      0x000000010c5bd17e -[__NSArrayI objectAtIndex:] + 1903   UIKit                               0x000000010d230fd2 -[UITableViewDataSource tableView:indentationLevelForRowAtIndexPath:] + 1064   UIKit                               0x000000010cdfb1b9 __53-[UITableView _configureCellForDisplay:forIndexPath:]_block_invoke + 1711

查了好久才查到原因: 在錯(cuò)誤log中有提示

3   UIKit                               0x000000010d230fd2 -[UITableViewDataSource tableView:indentationLevelForRowAtIndexPath:] + 106

解決方法:

-(NSInteger)tableView:(UITableView *)tableView indentationLevelForRowAtIndexPath:(NSIndexPath *)indexPath{    return 0;}

 

 

發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 临邑县| 赤城县| 永济市| 浪卡子县| 乐亭县| 霍州市| 东丽区| 涟源市| SHOW| 孝昌县| 睢宁县| 甘肃省| 建瓯市| 监利县| 马关县| 灵山县| 平武县| 体育| 西和县| 寻甸| 和政县| 胶州市| 陵水| 沅陵县| 宁城县| 平南县| 桑日县| 宜兰市| 余干县| 镇康县| 鲜城| 天峻县| 隆化县| 车险| 遵义县| 从江县| 竹北市| 潞城市| 富民县| 咸阳市| 敦煌市|