我已经成功使用SDWebImage很久了。但是随着iOS8的崩溃,当我们设置图像即
[ myImageView setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@",@"url"]] placeholderImage:[UIImage imageNamed:PROFILE_HOLDER_IMAGE]];
有办法避免它吗
干杯
最佳答案
他们已将iOS 8的 setImageWithURL 更改为 sd_setImageWithURL 。
试试这个新语法,
[myImageView sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@",@"url"]] placeholderImage:[UIImage imageNamed:PROFILE_HOLDER_IMAGE]];
关于ios8 - SDWebImage setImageWithURL iOS8崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25848659/