国产探花免费观看_亚洲丰满少妇自慰呻吟_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ā)表
主站蜘蛛池模板: 滨海县| 中西区| 紫金县| 绥阳县| 宁南县| 合水县| 仁布县| 揭西县| 东丰县| 新丰县| 德庆县| 越西县| 济南市| 阿坝县| 汝南县| 界首市| 奉新县| 天门市| 商丘市| 稷山县| 荔波县| 太和县| 泾阳县| 于都县| 西宁市| 教育| 石台县| 托里县| 左权县| 平陆县| 红桥区| 门头沟区| 新建县| 本溪| 酉阳| 安义县| 南江县| 邵武市| 嘉义市| 黄陵县| 都匀市|