SDWebImage发送未知异常 [英] SDWebImage sending unknown exception

查看:95
本文介绍了SDWebImage发送未知异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经实施并正确安装了我花了几天时间的框架,并且也是新的,这是我从网络上拍摄的图像,所以我解析了它,然后想要使用SDImageView加载这些图像,但之后编译im有这个例外

i have implemented and installed the framework correctly which it took me days, and also im new to this, the thing is i have this images from the web so i parsed it and then want to load those images using SDImageView, but after compiling im having this exception

-[UIImageView setImageWithURL:placeholderImage:]: unrecognized selector sent to instance 0x75b9730
[2456:11303] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIImageView setImageWithURL:placeholderImage:]: unrecognized selector sent to instance 0x75b9730'

当我删除占位符值此异常出现

when i remove the placeholder value this exception appear

-[UIImageView setImageWithURL:]: unrecognized selector sent to instance 0x7555960
[2236:11303] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIImageView setImageWithURL:]: unrecognized selector sent to instance 0x7555960'

我的代码也是这样的:

NSString *imageLink = [currentData imageLinkFromWeb];
[cell.imageView setImageWithURL:[NSURL URLWithString:imageLink]  placeholderImage:[UIImage imageNamed:@"image.jpg"]];


推荐答案

我也遇到过。对我来说,这是由于不将-ObjC链接器标志添加到构建设置。添加标志的说明是 here 。祝你好运!

I ran into this too. For me it was caused by not adding the -ObjC linker flag to the build settings. Instructions for adding the flag are here. Good luck!

这篇关于SDWebImage发送未知异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆