您好我使用SDWebImage
在我的TableView
中加载图片,并通过pod我已经在我的项目中安装了库,当我在代码下面运行时我得到如下所示的异常有人可以帮我吗...
#import <UIImageView+WebCache.h>
[cell.mainimage sd_setImageWithURL:[NSURL URLWithString:url]
placeholderImage:[UIImage imageNamed:@"placeholder.png"]];
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIImageView sd_setImageWithURL:placeholderImage:]: unrecognized selector sent to instance 0x7f93c3409c80'
答案 0 :(得分:2)
使用
#import "UIImageView+WebCache.h"
而不是
#import<UIImageView+WebCache.h>
答案 1 :(得分:0)
你做过这个吗?
Add linker flags
更新您的目标(或项目)构建设置,以包含以下"Other Linker Flags"
:
-ObjC
-all_load