Need help with AGImagePickerController?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

arturgrigor
423 Stars 174 Forks MIT License 41 Commits 20 Opened issues

Services available

!
?

Need anything else?

Contributors list

# 73,697
osx
Xcode
Swift
cloudki...
30 commits
# 238,785
Objecti...
Xcode
cocoapo...
C
2 commits
# 75,038
Xcode
siri
hap
TypeScr...
2 commits
# 339,667
Xcode
cocoapo...
CSS
HTML
1 commit
# 539
program...
Sketch
autoit
php7
1 commit

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.

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.