UIImageView :fileURLWithPath和ima

2016-08-02  本文已影响35人  恒_sir

使用SDWebImage的

[avatorImageView setImageWithURL:[NSURL fileURLWithPath:self.dataSource[0]]];在使用这个时,只能更新一次头像;

解决方法还是改成下面这个方法才能不断更新头像:

avatorImageView.image= [UIImage imageWithContentsOfFile:self.dataSource[0]];

上一篇 下一篇

猜你喜欢

热点阅读