Important facts about commercial licenses

  • Licenses are perpetual. They do not expire and do not need to be renewed.
  • Licenses can be upgraded. You can upgrade to a more expensive license later paying only the difference in cost.
  • Pay attention to the distribution type - Hosted (sites / servers), binary (applications) or source (includes all the others). Choose according to your needs (more below).
  • All licenses allow commercial use unless otherwise indicated.
  • Read the full license by clicking on the icon.
  • Read more about licenses in our handy license guide.
Free

MIT license

The MIT license is an
open-source license.
You need to log-in or create an account
  • Create an account
  • Log-in
  • Please use your real name.
  • Account activation link will be sent to this address.
  • Minimum 8 characters

Clicking this button confirms you read and agreed to the terms of use and privacy policy.

(5 ratings)

AGImagePickerController

AGImagePickerController
Developed by Artur Grigor, Released Mar 4, 2012

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

Objective-C

Tags: image picker , multiple images

AGImagePickerController

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

Screenshot

Installation

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

Usage

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

#import "AGImagePickerController.h"

Basic

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];

Contact

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

View all 3 reviews »

User Reviews

  • Joe Macirowski 4 months ago
    clean,easy to use, and customizable - be sure to check out the included sample project
    Flag
    Was this helpful? Yes No
  • James McClymonds 2 months ago
    :)
    Flag
    Was this helpful? Yes No
  • GavinW 11 months ago
    Nice component - easy to integrate once I figured out how to disable ARC for the source files only.
    Flag
    Was this helpful? Yes No
Read all 2 comments »

Questions & Comments


Or enter your name and Email
  • Artur Grigor Developer 1 year ago
    Thanks! No, I don't save them, I just pass them to the callback methods.
  • Giuseppe Cristiano 1 year ago
    Hi great job! Do you save the selected images in some array?
You must be logged-in to vote. Log-in to your account or register now.