Code Monkey home page Code Monkey logo

doimagepickercontroller's Introduction

DoImagePickerController

An image picker controller with single selection and multiple selection. Support to select lots photos with panning gesture.

Preview

Demo video

various column count : 2, 3 and 4

DoImagePickerController Screenshot

select multiple photos with pan gesture

DoImagePickerController Screenshot

select album

DoImagePickerController Screenshot

landscape mode

DoImagePickerController Screenshot

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

http://dribbble.com/KounterB

thank you so much for sharing awesome icons!!!

doimagepickercontroller's People

Contributors

donobono avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.