高性能多选图片库
多选照片
预览已选照片
针对超大图片优化
platform :ios, '7.0'
pod 'JFImagePicker'
#import "JFImagePickerController.h"
@interface ViewController () <JFImagePickerDelegate>
@end
JFImagePickerController *picker = [[JFImagePickerController alloc] initWithRootViewController:nil];
picker.pickerDelegate = self;
[self presentViewController:picker animated:YES completion:nil];
- (void)imagePickerDidFinished:(JFImagePickerController *)picker{
//picker.assets is all choices photo
[picker dismissViewControllerAnimated:YES completion:nil];
}
- (void)imagePickerDidCancel:(JFImagePickerController *)picker{
[picker dismissViewControllerAnimated:YES completion:nil];
}
[[JFImageManager sharedManager] thumbWithAsset:asset resultHandler:^(UIImage *result) {
//do something
}];
[[JFImageManager sharedManager] imageWithAsset:asset resultHandler:^(UIImage *result) {
//do something
}];
[JFImagePickerController clear]; //clear datas
JFImagePicker is released under the MIT license. See LICENSE for details.