Kevin Harwood 10 年之前
父節點
當前提交
20bcb6322a
共有 2 個文件被更改,包括 9 次插入0 次删除
  1. 4 0
      UIKit+AFNetworking/AFAutoPurgingImageCache.m
  2. 5 0
      UIKit+AFNetworking/AFImageDownloader.m

+ 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;