使用SDWebImage的
[avatorImageView setImageWithURL:[NSURL fileURLWithPath:self.dataSource[0]]];在使用這個時,只能更新一次頭像;
解決方法還是改成下面這個方法才能不斷更新頭像:
avatorImageView.image= [UIImage imageWithContentsOfFile:self.dataSource[0]];
使用SDWebImage的
[avatorImageView setImageWithURL:[NSURL fileURLWithPath:self.dataSource[0]]];在使用這個時,只能更新一次頭像;
解決方法還是改成下面這個方法才能不斷更新頭像:
avatorImageView.image= [UIImage imageWithContentsOfFile:self.dataSource[0]];