by arturgrigor

424 Stars 177 Forks Last release: Not found MIT License 41 Commits 4 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

No Maintenance Intended CocoaPods Compatible Platform Twitter


AGImagePickerController is a image picker controller that allows you to select multiple photos and can be used for all iOS devices.



Copy over the files from the AGImagePickerController folder to your project folder.


Wherever you want to use AGImagePickerController, import the appropriate header file and initialize as follows:

#import "AGImagePickerController.h"


AGImagePickerController *imagePickerController = [[AGImagePickerController alloc] initWithFailureBlock:^(NSError *error) {

    if (error == nil)
        NSLog(@"User has cancelled.");
        [self dismissModalViewControllerAnimated:YES];
    } else
        NSLog(@"Error: %@", error);

        // Wait for the view controller to show first and hide it after that
        double delayInSeconds = 0.5;
        dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, delayInSeconds * NSEC_PER_SEC);
        dispatch_after(popTime, dispatch_get_main_queue(), ^(void){
            [self dismissModalViewControllerAnimated:YES];

    [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDefault animated:YES];

} andSuccessBlock:^(NSArray *info) {
    NSLog(@"Info: %@", info);
    [self dismissModalViewControllerAnimated:YES];

    [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDefault animated:YES];

[self presentModalViewController:imagePickerController animated:YES];
[imagePickerController release];


Let me know if you're using or enjoying this product.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.