Latest 2.0.3
Homepage https://github.com/arturgrigor/AGImagePickerController
License MIT
Platforms ios 7.0, requires ARC
Frameworks AssetsLibrary, CoreLocation, QuartzCore, CoreGraphics
Authors

No Maintenance Intended
CocoaPods Compatible
Platform
Twitter

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.

Latest podspec

{
    "name": "AGImagePickerControllerForSport",
    "version": "2.0.3",
    "summary": "AGImagePickerController is a image picker controller that allows you to select multiple photos and can be used for all iOS devices.",
    "homepage": "https://github.com/arturgrigor/AGImagePickerController",
    "license": "MIT",
    "authors": {
        "Artur Grigor": "[email protected]"
    },
    "source": {
        "git": "https://github.com/jiangyancong/AGImagePickerController",
        "branch": "master"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source_files": "AGImagePickerController/*.{h,m}",
    "resources": "AGImagePickerController/AGImagePickerController.bundle",
    "frameworks": [
        "AssetsLibrary",
        "CoreLocation",
        "QuartzCore",
        "CoreGraphics"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This