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