[翻譯] DoImagePickerController

來源:互聯網
上載者:User

標籤: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

  • iOS 7.0 and greater
  • ARC

 

Features

  • adjustable column count : 2 ~ 4                                  支援的列數是 2 ~ 4
  • adjustable count to select photos                                
  • multiple selection with pan gesture                              支援pan手勢選擇圖片
  • 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 1cont.nColumnCount = 3;  // 2, 3, or 4cont.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];

 

 

 

 

 

 

 

 

  

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.