SDWebImage setImageWithURL iOS8崩溃

我已成功使用SDWeb Image很长时间了.但是当我们设置图像时,iOS8会崩溃,即
[ myImageView setimageWithURL:[NSURL URLWithString:[Nsstring stringWithFormat:@"%@",@"url"]] placeholderImage:[UIImage imageNamed:PROFILE_HOLDER_IMAGE]];

有没有办法避免它

干杯

解决方法

他们已将setimageWithURL更改为iOS 8的sd_setimageWithURL.

试试这个新语法,

[myImageView sd_setimageWithURL:[NSURL URLWithString:[Nsstring stringWithFormat:@"%@",@"url"]] placeholderImage:[UIImage imageNamed:PROFILE_HOLDER_IMAGE]];

相关文章

当我们远离最新的 iOS 16 更新版本时,我们听到了困扰 Apple...
欧版/美版 特别说一下,美版选错了 可能会永久丧失4G,不过只...
一般在接外包的时候, 通常第三方需要安装你的app进行测...
前言为了让更多的人永远记住12月13日,各大厂都在这一天将应...