Use of undeclared identifier '_executing' / '_finished';
其实源码是没问题的,具体为何报错,原因可能与Xcode6的compiler对于语法规则的解析变化有关。
解决方式也很简单,在.m文件里加入@synthesize声明即可
@synthesize executing = _executing;
@synthesize finished = _finished;
@implementation SDWebImageDownloaderOperation {
size_t width, height;
UIImageOrientation orientation;
BOOL responseFromCached;
}
@synthesize executing = _executing;
@synthesize finished = _finished;
- (id)initWithRequest:(NSURLRequest *)request options:(SDWebImageDownloaderOptions)options progress:(void (^)(NSInteger, NSInteger))progressBlock completed:(void (^)(UIImage *, NSData *, NSError *, BOOL))completedBlock cancelled:(void (^)())cancelBlock {