SDWebImage报错


我们再用SDWebImage第三方框架时,会遇到这种低级的问题,报错:Use of undeclared identifier _executing/_finished;其实就是因为没有实现@synthesize

SDWebImage报错_第1张图片

解决办法

只需在SDWebImageDownloaderOperation的.m文件中添加@synthesize,重新编译即可,例如:

@implementation SDWebImageDownloaderOperation {
    size_t width, height;
    UIImageOrientation orientation;
    BOOL responseFromCached;
}@synthesize executing=_executing;@synthesize finished=_finished;

你可能感兴趣的:(SDWebImage报错)