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

如果加载网络图片怎么处理? #220

Open xuchuandong opened 7 years ago

xuchuandong commented 7 years ago

如果加载网络图片怎么处理?从后台获取图片url,首先有一个默认图片高度,那url下载重新布局,是应该在cell里下载后重新布局,然后通知tableview重新刷新(这个使用SDWebImage容易引起循环调用);我的处理是model有一个UIimage 属性,如果image有值,默认default图片,下载完就刷新tableview;但总是感觉不妥。您有什么好的处理办法?