mirror of
https://github.com/zhigang1992/PINRemoteImage.git
synced 2026-04-29 12:45:15 +08:00
Merge pull request #86 from foursquare/check-nil-url
Guard against nil url in category methods
This commit is contained in:
@@ -47,7 +47,7 @@
|
||||
|
||||
- (void)pin_setImageFromURL:(NSURL *)url placeholderImage:(UIImage *)placeholderImage processorKey:(NSString *)processorKey processor:(PINRemoteImageManagerImageProcessor)processor completion:(PINRemoteImageManagerImageCompletion)completion
|
||||
{
|
||||
[PINRemoteImageCategoryManager setImageOnView:self fromURLs:@[url] placeholderImage:placeholderImage processorKey:processorKey processor:processor completion:completion];
|
||||
[PINRemoteImageCategoryManager setImageOnView:self fromURLs:url?@[url]:nil placeholderImage:placeholderImage processorKey:processorKey processor:processor completion:completion];
|
||||
}
|
||||
|
||||
- (void)pin_setImageFromURLs:(NSArray *)urls
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
|
||||
- (void)pin_setImageFromURL:(NSURL *)url placeholderImage:(UIImage *)placeholderImage processorKey:(NSString *)processorKey processor:(PINRemoteImageManagerImageProcessor)processor completion:(PINRemoteImageManagerImageCompletion)completion
|
||||
{
|
||||
[PINRemoteImageCategoryManager setImageOnView:self fromURLs:@[url] placeholderImage:placeholderImage processorKey:processorKey processor:processor completion:completion];
|
||||
[PINRemoteImageCategoryManager setImageOnView:self fromURLs:url?@[url]:nil placeholderImage:placeholderImage processorKey:processorKey processor:processor completion:completion];
|
||||
}
|
||||
|
||||
- (void)pin_setImageFromURLs:(NSArray *)urls
|
||||
|
||||
Reference in New Issue
Block a user