It supports multiple photos.
It supports zoom and gestures.
It supports GIF.
It supports thirdparty cache component.
Delete and insert photos.
Long press gesture.
It supports custom additional views.
Custom UI style support.
Only two files. :)
LCPhotoBrowser + SDWebImageCache
- (BOOL )application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
SDImageCache * imageCache = [SDWebImageManager sharedManager ].imageCache;
LCPhotoBrowserActionTransfer.share.downloadDidFinished = ^(NSString * urlString, UIImage * image){
[imageCache storeImage: image forKey: [[SDWebImageManager sharedManager ] cacheKeyForURL: [NSURL URLWithString: urlString]]];
};
LCPhotoBrowserActionTransfer.share.readImageFromCache = ^UIImage *(NSString * urlString){
NSString * key = [[SDWebImageManager sharedManager ] cacheKeyForURL: [NSURL URLWithString: urlString]];
UIImage * image = [imageCache imageFromDiskCacheForKey: key];
return image;
};
}
1.1
Fix current index problem.
Fix problem caused by cornerRadius of referenceView.
1.0