标签:style blog http color os io for ar
DoImagePickerController
An image picker controller with single selection and multiple selection. Support to select lots photos with panning gesture.
这是一个图片选择器,可以选择一张或者多张图片.支持移动手势选择大量的图片.
various column count : 2, 3 and 4 - 支持的列数为2,3,4
select multiple photos with pan gesture - 支持pan手势
select album - 支持相册选取
Requirements
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;
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];
[翻译] DoImagePickerController,布布扣,bubuko.com
标签:style blog http color os io for ar
原文地址:http://www.cnblogs.com/YouXianMing/p/3926572.html