Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/johnil/JFImagePickerController
高性能多选图片库
https://github.com/johnil/JFImagePickerController
Last synced: about 2 hours ago
JSON representation
高性能多选图片库
- Host: GitHub
- URL: https://github.com/johnil/JFImagePickerController
- Owner: johnil
- License: mit
- Created: 2015-07-04T08:28:33.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-22T10:40:25.000Z (about 9 years ago)
- Last Synced: 2024-10-07T17:31:03.061Z (about 1 month ago)
- Language: Objective-C
- Size: 1.08 MB
- Stars: 588
- Watchers: 13
- Forks: 77
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.