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

  • Home
  • SEARCH
  • 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 6061187
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:54:36+00:00 2026-05-23T08:54:36+00:00

I have a tab bar + navigation based app and I’d like to launch

  • 0

I have a tab bar + navigation based app and I’d like to launch two views back to back from the right side navigation button of the main UIViewController without too many obvious looking transitions. I’m having trouble figuring out the right way to structure and contain such a navigation scheme.

The first view/controller I need to show is the UIImagePickerController, which has to be shown as modal. If you try to push it onto a UINavigationController, you’ll get an exception. As soon as the picker is dismissed, I want to show a child UIViewController. When this child controller is dismissed, I’ll go back to showing my main UIViewController with the tabs.

Here’s how I have it structured now:

Tab Bar 
   -> (tab 1) UINavigationController -> UIViewController (main content for tab 1)
   -> (tab 2) UINavigationController -> UIViewController (main content for tab 2)

MainContent1Controller:

- (void)onNavigationItemTapped {

  // Launch the picker to take pictures
  UIImagePickerController *picker = [[UIImagePickerController alloc] init];

   // configure picker options including:
  picker.delegate = self;

  [self presentModalViewController:picker animated:YES];
  [picker release];
}

- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
{
    // Process the photo taken

    // unlink this view controller as the delegate
    picker.delegate = nil; 

    // Dismiss the UIImagePickerController 
    [self dismissModalViewControllerAnimated:YES];                          

    // Create the 2nd controller and show - this doesn't work and the child controller is not visible for some reason
    ChildController *child = [[ChildController alloc] initWithNibName:...];
    [self presentModalViewController:child animated:YES];
    [child release];
}   

Any suggestions?

  • 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-05-23T08:54:37+00:00Added an answer on May 23, 2026 at 8:54 am

    You should probably do this,

    - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
    {
        // Process the photo taken
    
        // unlink this view controller as the delegate
        picker.delegate = nil; 
    
        // Create the 2nd controller and show - this doesn't work and the child controller is not visible for some reason
        ChildController *child = [[ChildController alloc] initWithNibName:nil bundle:nil];
        [self.navigationController pushViewController:child animated:NO];
        [child release];
    
        // Dismiss the UIImagePickerController 
        [self dismissModalViewControllerAnimated:YES];                          
    }   
    

    This way you add child to the navigation hierarchy and dismiss the image picker. A single animation will show the image picker being dismissed to reveal child controller.

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

Sidebar

Related Questions

I have developed an iPhone application based on Tab bar & Navigation bar and
I have a UINavigationBar based application - only a one navigation bar that is
I currently have this workflow in a tab based app: Tab1 loads... ViewOne :
I have a tab bar application with a navigation controller and view controllers inside
I have an application with a tab bar and a navigation bar. I push
I have the following in the mainwindow.xib Navigation Controller List item Tab bar controller
I have created a tabbar based project and my first tab have a navigation
I have a Tab Bar application and in there I have a Navigation Bar
i have a tab bar control. 1st tab contains a navigation control. On the
I have tab based application which also have Navigation controllers, When the user in

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.