gsdios / SDAutoLayout

One line of code to implement automatic layout. 一行代码搞定自动布局!支持Cell和Tableview高度自适应,Label和ScrollView内容自适应,致力于做最简单易用的AutoLayout库。The most easy way for autoLayout. Based on runtime.
MIT License
5.9k stars 1.28k forks source link

- (void)sd_reloadRowsAtIndexPaths:(NSArray *)indexPaths withRowAnimation:(UITableViewRowAnimation)animation #261

Closed topjx closed 6 years ago

topjx commented 6 years ago

Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'attempt to insert row 0 into section 2, but there are only 2 sections after the update'

这是什么鬼?

topjx commented 6 years ago

@gsdios

gsdios commented 6 years ago

SDAutoLayout在运行时交换了reloadRowsAtIndexPaths方法,当你调用reloadRowsAtIndexPaths方法时候就会走到sd_reloadRowsAtIndexPaths:这里,但往往这个错误和sd美颜关系,还是需要你检查下你在什么地方调用reloadRowsAtIndexPaths:方法

topjx commented 6 years ago

嗯嗯

JiekangLiao commented 6 years ago

数组越界