Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/johnil/JFImagePickerController

高性能多选图片库
https://github.com/johnil/JFImagePickerController

Last synced: about 2 hours ago
JSON representation

高性能多选图片库

Awesome Lists containing this project

README

        

# JFImagePicker
高性能多选图片库


###功能

多选照片

预览已选照片

针对超大图片优化

###Podfile

```ruby
platform :ios, '7.0'
pod 'JFImagePicker'
```

###How to Use

##### Import
```objective-c
#import "JFImagePickerController.h"

@interface ViewController ()

@end

```

##### Load JFImagePicker
```objective-c
JFImagePickerController *picker = [[JFImagePickerController alloc] initWithRootViewController:nil];
picker.pickerDelegate = self;
[self presentViewController:picker animated:YES completion:nil];
```

##### Delegate Method
```objective-c
- (void)imagePickerDidFinished:(JFImagePickerController *)picker{
//picker.assets is all choices photo
[picker dismissViewControllerAnimated:YES completion:nil];
}

- (void)imagePickerDidCancel:(JFImagePickerController *)picker{
[picker dismissViewControllerAnimated:YES completion:nil];
}
```

##### Load Thumb UIImage
```objective-c
[[JFImageManager sharedManager] thumbWithAsset:asset resultHandler:^(UIImage *result) {
//do something
}];
```

##### Load UIImage for best size
```objective-c
[[JFImageManager sharedManager] imageWithAsset:asset resultHandler:^(UIImage *result) {
//do something
}];
```

##### clear
```objective-c
[JFImagePickerController clear]; //clear datas
```

#License

JFImagePicker is released under the MIT license. See LICENSE for details.