Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8221541
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T13:57:39+00:00 2026-06-07T13:57:39+00:00

AGImagePickerController *imagePickerController = [[AGImagePickerController alloc] initWithFailureBlock:^(NSError *error) { if (error == nil) { NSLog(@User

  • 0
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];
}];

popover = [[UIPopoverController alloc] initWithContentViewController:imagePickerController];
[popover presentPopoverFromRect:CGRectMake(0.0, 0.0, 400.0, 400.0) 
                         inView:self.view.window
       permittedArrowDirections:UIPopoverArrowDirectionAny 
                       animated:YES];

was able to present it, but, even I change the size its still the same, and when I pressed the DONE button, it removes my View controller not the imagepicker. Help please. I present it in a popover cause I think that, thats’s why its slow it because imagepicker should be present with popover for iPad.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T13:57:40+00:00Added an answer on June 7, 2026 at 1:57 pm

    resize set it this way:

    [popoverController setPopoverContentSize:CGSizeMake(1024, 500)];
    

    then in your andSuccessBlock and other part you used:

    [self dismissModalViewControllerAnimated:YES];
    

    should be

    [popoverController dismissPopoverAnimated:YES];
    

    That’s why ViewController is being dismissed or removed from the view, because it is being dismissed the wrong way.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I'm using the AGImagePickerController in iPad, I successfully save my selected image in
I'm using AGImagePickerController . Im having a hard time figuring out how to import
I need an image picker that supports multiple selections for writing an app, something
I had a problem with my iPhone app runs on iPad .I am using
//RootViewViewController.h #import <UIKit/UIKit.h> #import SettingsViewController.h #import OneSlotViewController.h #import TwoSlotViewController.h #import BingoSlotViewController.h #import SettingsViewController.h @interface

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.