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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T19:30:09+00:00 2026-05-17T19:30:09+00:00

I have a Tab Bar Application and I want to simply display a view

  • 0

I have a Tab Bar Application and I want to simply display a view (splash screen) once the didFinishLaunchingWithOptions method loads up the tab bar controller. Why is this so hard? Please show me how I’d load up and show a Xib file called SplashView.xib below and display it:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {    

    // Override point for customization after application launch.

    // Add the tab bar controller's view to the window and display.
    [window addSubview:tabBarController.view];
    [window makeKeyAndVisible];

    // Load up and show splash screen Xib here

    return YES;
}
  • 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-17T19:30:10+00:00Added an answer on May 17, 2026 at 7:30 pm

    First thing I’d mention is that splash screens are specifically frowned upon in the HIG. Especially ones that only serve to make the user wait & stare at some logo they don’t care about.

    Now that rant is out of the way, I’ll assume that you probably have some loading going on that you’d like to have happen before the tabs are displayed.

    In this case I don’t load up a tab bar in the MainWindow.xib. Instead I launch my single view (with XIB) that does the loading. The reason is this: You’ll pay for the loading of all of those views before you can even see your splash screen.

    In the case of loading data, sometimes these tabs depend on this data being loaded, so it makes more sense to wait to load up the tab bar controller.

    The app delegate ends up looking like this:

    - (void)applicationDidFinishLaunching:(UIApplication *)application {
        [window makeKeyAndVisible];
        [window addSubview:splashController.view];  //this assumes MainWindow.xib defines your splash screen, otherwise....
    
        UIViewController *splashController = [[SplashController alloc] initWithNibName:@"SplashController" bundle:nil];
        splashController.delegate = self;
        [window addSubview:splashController.view];
    
        //hang on to it in an ivar, remember to release in the dealloc
    }
    

    Then in the splash screen controller, when I’m done loading, I do this:

    -(void)doneLoading {
        [self.delegate performSelector:@selector(splashScreenDidFinishLoading)];
    }
    

    Of course self.delegate doesn’t exist, and it can be added simply like this:

    //header
    @property (nonatomic, assign) id delegate;
    
    //implementation
    @synthesize delegate;
    

    Then just make sure and implement that method on the app delegate:

    -(void)splashScreenDidFinishLoading {
         //load up tab bar from nib & display on window
         //dispose of splash screen controller
    }
    

    I’ve used this pattern in a handful of apps and is simple and works well. You could also choose to do a nice transition animation in the method above.

    Hope this helps.

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

Sidebar

Related Questions

I have an application that has many views (Using tab bar controller). I want
I have an application with several view controllers controlled from a tab bar controller.
I have a tab bar application with a navigation controller and view controllers inside
I have a tab bar application and I want to display those views that
In my application i have Tab bar Controller. I want to change default color
i have a tab bar application, now what i want to do is to
I have a tab bar along with navigation controller iphone application. Now I need
I have a tab-bar and navigation controller application (like Youtube app or Contacts app).
Let's have an example. In application I have a tab bar controller. Tab bar
I have a tab bar controller (its a tab bar based application, so tab

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.