Kevin Harwood 10 жил өмнө
parent
commit
20bcb6322a

+ 4 - 0
UIKit+AFNetworking/AFAutoPurgingImageCache.m

@@ -67,7 +67,11 @@
 @interface AFAutoPurgingImageCache ()
 @property (nonatomic, strong) NSMutableDictionary <NSString* , AFCachedImage*> *cachedImages;
 @property (nonatomic, assign) UInt64 currentMemoryUsage;
+#if OS_OBJECT_HAVE_OBJC_SUPPORT
 @property (nonatomic, strong) dispatch_queue_t synchronizationQueue;
+#else
+@property (nonatomic, assign) dispatch_queue_t synchronizationQueue;
+#endif
 @end
 
 @implementation AFAutoPurgingImageCache

+ 5 - 0
UIKit+AFNetworking/AFImageDownloader.m

@@ -93,8 +93,13 @@
 
 @interface AFImageDownloader ()
 
+#if OS_OBJECT_HAVE_OBJC_SUPPORT
 @property (nonatomic, strong) dispatch_queue_t synchronizationQueue;
 @property (nonatomic, strong) dispatch_queue_t responseQueue;
+#else
+@property (nonatomic, assign) dispatch_queue_t synchronizationQueue;
+@property (nonatomic, assign) dispatch_queue_t responseQueue;
+#endif
 
 @property (nonatomic, assign) NSInteger maximumActiveDownloads;
 @property (nonatomic, assign) NSInteger activeRequestCount;