Fix build and podfile

This commit is contained in:
Garrett Moon 2016-02-09 10:31:10 -08:00
parent 0be51c1ca2
commit 820390e496
3 changed files with 5 additions and 5 deletions

View File

@ -51,7 +51,7 @@ Pod::Spec.new do |spec|
spec.subspec 'PINRemoteImage' do |pin| spec.subspec 'PINRemoteImage' do |pin|
pin.xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) PIN_REMOTE_IMAGE=1' } pin.xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) PIN_REMOTE_IMAGE=1' }
pin.dependency 'PINRemoteImage' pin.dependency 'PINRemoteImage', '>= 2'
pin.dependency 'AsyncDisplayKit/ASDealloc2MainObject' pin.dependency 'AsyncDisplayKit/ASDealloc2MainObject'
end end

View File

@ -15,7 +15,7 @@ typedef void(^ASImageCacherCompletion)(UIImage * _Nullable imageFromCache);
@protocol ASImageCacheProtocol <NSObject> @protocol ASImageCacheProtocol <NSObject>
@required @optional
/** /**
@deprecated This method is deprecated @see cachedImageWithURL:callbackQueue:completion: instead @deprecated This method is deprecated @see cachedImageWithURL:callbackQueue:completion: instead
*/ */

View File

@ -53,12 +53,12 @@
*/ */
- (nullable id)downloadImageWithURL:(NSURL *)URL - (nullable id)downloadImageWithURL:(NSURL *)URL
callbackQueue:(dispatch_queue_t)callbackQueue callbackQueue:(dispatch_queue_t)callbackQueue
downloadProgressBlock:(void (^)(CGFloat progress))downloadProgressBlock downloadProgress:(void (^)(CGFloat progress))downloadProgressBlock
completion:(void (^)(CGImageRef image, NSError * error, id downloadIdentifier))completion completion:(void (^)(UIImage *image, NSError * error, id downloadIdentifier))completion
{ {
return [[PINRemoteImageManager sharedImageManager] downloadImageWithURL:URL completion:^(PINRemoteImageManagerResult *result) { return [[PINRemoteImageManager sharedImageManager] downloadImageWithURL:URL completion:^(PINRemoteImageManagerResult *result) {
dispatch_async(callbackQueue, ^{ dispatch_async(callbackQueue, ^{
completion([result.image CGImage], result.error, result.UUID); completion(result.image, result.error, result.UUID);
}); });
}]; }];
} }