项目
在 GitHub 查看
donobono/DoImagePickerController
关于
支持单选和多选的图片选择控制器。支持通过平移手势选择大量照片。
设计与媒体可以做什么
- adjustable column count : 2 ~ 4
- adjustable count to select photos
- multiple selection with pan gesture
- go top or botom directly by tapping right side buttons
实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文DoImagePickerController
An image picker controller with single selection and multiple selection. Support to select lots photos with panning gesture.
Preview
various column count : 2, 3 and 4

select multiple photos with pan gesture

select album

landscape mode

Requirements
- iOS 7.0 and greater
- ARC
Features
- adjustable column count : 2 ~ 4
- adjustable count to select photos
- multiple selection with pan gesture
- landscape mode
- go top or botom directly by tapping right side buttons
- long tap on thumbnail to show preview
- tap or drag preview to close preview
Examples
- AssetHelper : helper class for asset
Code:
// YES : old photo -> new photo
// NO : new photo -> old photo
@property (readwrite) BOOL bReverse;
// methods to get asset data
- (void)getGroupList:(void (^)(NSArray *))result;
- (void)getPhotoListOfGroup:(ALAssetsGroup *)alGroup result:(void (^)(NSArray *))result;
- (void)getPhotoListOfGroupByIndex:(NSInteger)nGroupIndex result:(void (^)(NSArray *))result;
- (void)getSavedPhotoList:(void (^)(NSArray *))result error:(void (^)(NSError *))error;
- DoImagePickerController
Code:
DoImagePickerController *cont = [[DoImagePickerController alloc] initWithNibName:@"DoImagePickerController" bundle:nil];
cont.delegate = self;
cont.nMaxCount = 4; // larger than 1
cont.nColumnCount = 3; // 2, 3, or 4
cont.nResultType = DO_PICKER_RESULT_UIIMAGE; // get UIImage object array : common case
// if you want to get lots photos, you had better use DO_PICKER_RESULT_ASSET.
[self presentViewController:cont animated:YES completion:nil];
Credits
DoImagePickerController was created by Dono Cho.
License
DoImagePickerController is available under the MIT license. See the LICENSE file for more info.
Icon images from
thank you so much for sharing awesome icons!!!
探索相关项目
加载中…