AGImagePickerController

AGImagePickerController

Released 6 years ago , Last update 5 years ago

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

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.

4.6
  • 5 3
  • 4 2
  • 3 0
  • 2 0
  • 1 0
5 Reviews Read Reviews

Pricing

14 day 14-day money-back guarantee

FREE

MIT license

The MIT license is an open-source license.

License » MIT license Download

Get A Quote

What do you need?
  • Custom development
  • Integration
  • Customization / Reskinning
  • Consultation
When do you need it?
  • Soon
  • Next week
  • Next month
  • Anytime

Thanks for getting in touch!

Your quote details have been received and we'll get back to you soon.


Or enter your name and Email
  • PK praveen kumar 3 years ago
    Hi Have downloaded AgimagePickerController but it got crashes on iphone 6 plus when try to select image from gallary, it working fine in ipad ipod - (NSUInteger)agImagePickerController:(AGImagePickerController *)picker numberOfItemsPerRowForDevice:(AGDeviceType)deviceType andInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { here picker is null ,and crash
  • AN Andriy Novoselskiy 4 years ago
    I have some trouble. When i got and showed in UICollectionView more than 10 photos app crashed with "Received Memory Warning". Please help me!
  • GC Giuseppe Cristiano 6 years ago
    Hi great job! Do you save the selected images in some array?