ios8 - SDWebImage setImageWithURL iOS8崩溃

标签 ios8 sdwebimage

我已经成功使用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/

相关文章:

ios - “SDWebImageCompat.h”文件未找到错误

ios - 如何使用 SDWebImage 调整 UIImage 的大小?

input - 如何使用 objective-c 从 UIAlertController 中的文本字段访问输入?

iOS8 Today Widget - 更改标题并将内容添加到默认值

ios - 如何使用 SDWebImage 调整下载的图像大小?

ios - 具有永久缓存的 sdwebimage

ios - iOS SDWebImage-如何正确处理不同设备上的视网膜图像?

xcode - SKSpriteNode 通过触摸拖动移动

keyboard - 如何检查 "Allow Full Access"在 iOS 8 中是否启用?

ios - 如何准确计算 iOS 8 上硬件解码的 FPS?