titman / LCPhotoBrowser

Photo browser for iOS. Simple but powerfull.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LCPhotoBrowser

badge-pod badge-languages badge-platforms badge-mit

Features

  • 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. :)

Preview (GIF)

image image image image

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

Update

  • 1.1
    • Fix current index problem.
    • Fix problem caused by cornerRadius of referenceView.
  • 1.0
    • First commit.

About

Photo browser for iOS. Simple but powerfull.

License:MIT License


Languages

Language:Objective-C 100.0%