Block should always be declared using the copy attribute.

This commit is contained in:
Stan Chang Khin Boon 2015-03-08 01:54:02 +08:00
parent 10adca52d0
commit 7c5b31e419

View File

@ -21,8 +21,8 @@
*/
@interface ASBasicImageDownloaderMetadata : NSObject
@property (nonatomic, strong) dispatch_queue_t callbackQueue;
@property (nonatomic, strong) void (^downloadProgressBlock)(CGFloat);
@property (nonatomic, strong) void (^completionBlock)(CGImageRef, NSError *);
@property (nonatomic, copy) void (^downloadProgressBlock)(CGFloat);
@property (nonatomic, copy) void (^completionBlock)(CGImageRef, NSError *);
@end
@implementation ASBasicImageDownloaderMetadata