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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T12:28:53+00:00 2026-05-13T12:28:53+00:00

In my app delegate, I am creating a tab controller with a bunch of

  • 0

In my app delegate, I am creating a tab controller with a bunch of view controllers for it and then a separate UIViewController that I show as the top-most view until the user performs a certain action.

I’m initially covering up my tab controller with the second controller but eventually, the second controller is dismissed via ‘removeFromSuperview’. However, after this happens, the tab controller view won’t respond to any taps or any UI interaction. My app isn’t hung as I can see the processing happen.

Is there a way to make the tab controller become the de-facto responder after the topmost view is dismissed?

Here’s how I initially create both view controllers:

{
// main navigation controller is a tab bar
UITabBarController *tabBarController = [[UITabBarController alloc] init];
tabBarController.viewControllers = [NSArray arrayWithObjects: controller1, 
                                    controller2,
                                    controller3, nil];

// Add the tab bar to the view
[window addSubview:tabBarController.view];


// Creating the 2nd navigation controller - covering up the tab bar 
// temporarily
UIViewController *viewController  = [[MySecondViewController alloc] 
                                        initWithNibName:@"SomeView" 
                                        bundle:nil];

UINavigationController *navController = [[UINavigationController alloc]
            initWithRootViewController:viewController];

[viewController release];

// Configure and show the second navigation controller
[window addSubview:[navController view]];       

// Make everything visible
[window makeKeyAndVisible];
}

How the top most view is dismissed:

@interface MySecondViewController : UIViewController
{
}
-(void)dismissMe;
@end

@implementation MySecondViewController
-(void)dismissMe
{
    // Here, the this view is getting removed
    [self.view removeFromSuperview];        
}
@end

I don’t want the top most view to look like I was adding a modal dialog and would like the screen to be there as soon as the app is launched.

  • 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-13T12:28:53+00:00Added an answer on May 13, 2026 at 12:28 pm

    I think your tabbar view is still “2nd” in the list. Have you tried adding:

    bringSubviewToFront:

    Moves the specified subview to the
    front of its siblings.
    – (void)bringSubviewToFront:(UIView *)view Parameters view
    The subview to move to the front. Availability
    * Available in iPhone OS 2.0 and later. See Also
    * – sendSubviewToBack: Declared In UIView.h

    If that doesn’t help, you may need to set your tabbar as First Responder.

    - (BOOL)canBecomeFirstResponder {
         returnYES;
    }
    
    - (void)viewDidAppear:(BOOL)animated {
        [super viewDidAppear:animated];
        [self becomeFirstResponder];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this method in App Delegate that makes a window and content view
I'm programmatically creating a tab bar based app. In the application:didFinishLaunchingWithOptions (app delegate) method
I am creating an app using jQuery Mobile and PhoneGap. I delegate a button
I am creating and adding UITabBarController programatically in my App Delegate. I have 5
I'm creating an Universal App that uses a UISplitView inside an UITabBar. Everything is
I'm creating an app that has a UITableView. The data will be comming from
I have a large number of UIViews that are created in the app delegate
I'm creating a app on Xcode and i would like a alert view to
I am programmatically creating a view in the loadView method of my view controller.
On my app delegate class I have a simple property @property (strong, nonatomic) LoginAppDelegate

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.