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 6536377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:29:11+00:00 2026-05-25T10:29:11+00:00

I am designing an iPhone App wherein I would like there to be a

  • 0

I am designing an iPhone App wherein I would like there to be a main screen. I then want users to be able to hit an info button in the bottom right of this screen and enter an entirely different interface that will handle options and various forms of data display.

After some research on View Controllers in Apple’s documentation, I have determined that I definitely want to use a modal view when the info button is pressed. My problem, though, is that the interface that fits best is a UITabBarController. I’d like to have a tab in my UITabBarController that represents the main screen and, when touched, will tell the main screen to dismiss the UITabBarController.

I have seen quite a few examples on the web where people add custom view controllers with buttons that trigger the modal view dismissal to tabs on the UITabBarController, but I would like to entirely avoid displaying an extra view. As soon as the user touches the main screen tab, I’d like the modal view to dismiss. I have already experimented with approaches that placed the main screen in the UITabBarController, and was not satisfied, so I’m hoping somebody out there is familiar with the rare modal UITabBarController design and can offer me some guidance.

Is this at all possible? If not, how can I accomplish the same interface flow in a different way?

I haven’t tried this yet, but is there a way I could set the UITabBarController up with an empty UIViewController to represent the main screen and call on a UITabBarControllerDelegate to send the dismiss message to the main screen before the empty view appears?

  • 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-25T10:29:12+00:00Added an answer on May 25, 2026 at 10:29 am

    Ok, I figured this out. I admit this is probably not the most orthodox UI design, but I think it does make intuitive sense… somebody should probably link me to the Apple UI guideline that this violates, though.

    The following code will allow a user to press an info button that will animate the presentation of a modal UITabBarController. In this example, the UITabBarController has only one tab and the tab bar has not been set up with icons or titles. Once in the modal view, the user can click the first tab in the bar and the modal view will be dismissed. (This logically means that you’ll want to tell the UITabBarController to start at an index other than the first.)

    - (IBAction)infoButtonPressed
    {
         UIViewController *mainScreen = [[UIViewController alloc] init];
         NSArray *viewControllers = [[NSArray alloc] initWithObjects:mainScreen, nil];
         UITabBarController *tabBarController = [[UITabBarController alloc] init];
         tabBarController.viewControllers = viewControllers;
         //This means that "self" needs to implement the UITabBarControllerDelegate protocol
         tabBarController.delegate = self;
         [self presentModalViewController:tabBarController animated:YES];
    
         [mainScreen release];
         [viewControllers release];
         [tabBarController release];
    }
    
    - (void)tabBarController:(UITabBarController *)tabBarController didSelectViewController:(UIViewController *)viewController
    {
         if (viewController == [tabBarController.viewControllers objectAtIndex:0]) {
              [self dismissModalViewControllerAnimated:YES];
         }
    }
    

    I am now, however, getting a warning about two-stage rotation animation:

    Using two-stage rotation animation. To use the smoother single-stage animation, this application must remove two-stage method implementations.
    Using two-stage rotation animation is not supported when rotating more than one view controller or view controllers not the window delegate
    

    Preliminary research said that it was because I was using a UIImageViewController to display a background on my mainScreen view, but I have since changed that to UIColor initWithPatternImage. Anybody know how to get rid of the warning– or if it even matters to ignore it?

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

Sidebar

Related Questions

I'm designing an iPad/iPhone app using core data. The main focus of the app
Q1) I am designing a iPhone app and want to know on what basis
I am designing a twitter iPhone app for my school. I wanted to moderate
I am designing an iPhone app that provides services to the same app running
I'm designing an iPhone app that features a rather large set of onscreen rounded
I’m in the process of designing an iPhone app, using Core Data for data
Well i'm designing an iPhone app which will play video locally. When I click
I am currently designing an iOS 5 iPhone app that will use a .NET
I want to be able to (live) stream the frames/video FROM the iPhone camera
i am designing an app for iPhone and android app. When the app gets

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.