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

刷新cell 提示数组越界 #223

Closed iamgod588 closed 7 years ago

iamgod588 commented 7 years ago

为了让一张图片时候图片能够自适应(服务器没给我图片size),我在图片加载完后返回图片高度通知tableview重新reload那个cell,但是[UITableView(SDAutoTableViewCellHeight) sd_reloadRowsAtIndexPaths:withRowAnimation:] 提示[__NSArrayM objectAtIndex:]: index 2 beyond bounds [0 .. 1]',表示理解不能,而且有时候界面上回多画出一个cell,数据源并没有增加,大神看到了能加个qq帮我看看问题嘛 642261164

gsdios commented 7 years ago

这里还是你代码逻辑的问题,先自查一下