mirror of
https://github.com/zhigang1992/PINRemoteImage.git
synced 2026-04-28 20:25:13 +08:00
Merge branch 'master' of https://github.com/kerrmarin/PINRemoteImage into kerrmarin-master
This commit is contained in:
@@ -217,6 +217,10 @@
|
||||
- (void)pin_clearImages;
|
||||
- (BOOL)pin_ignoreGIFs;
|
||||
|
||||
@optional
|
||||
|
||||
- (PINRemoteImageManagerDownloadOptions)pin_defaultOptions;
|
||||
|
||||
@end
|
||||
|
||||
/**
|
||||
|
||||
@@ -172,7 +172,14 @@
|
||||
if (placeholderImage) {
|
||||
[view pin_setPlaceholderWithImage:placeholderImage];
|
||||
}
|
||||
PINRemoteImageManagerDownloadOptions options = PINRemoteImageManagerDownloadOptionsNone;
|
||||
|
||||
PINRemoteImageManagerDownloadOptions options;
|
||||
if([view respondsToSelector:@selector(pin_defaultOptions)]) {
|
||||
options = [view pin_defaultOptions];
|
||||
} else {
|
||||
options = PINRemoteImageManagerDownloadOptionsNone;
|
||||
}
|
||||
|
||||
if ([view pin_ignoreGIFs]) {
|
||||
options |= PINRemoteImageManagerDownloadOptionsIgnoreGIFs;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user