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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T08:27:57+00:00 2026-05-16T08:27:57+00:00

Fairly new to iPhone app development, so this might be really obvious (if so,

  • 0

Fairly new to iPhone app development, so this might be really obvious (if so, apologies in advance!)

I’m building an app which has a tab bar. However, when the app first runs and ‘launch screen’ is shown with 3 UIButtons – each of these buttons points at a view of one of the tabs. What I need to do is:

Close the existing view
Open the selected view
Set the highlighted tab accordingly

This sounds like it should be quite easy, but a few hours of Googling has found nothing!

Thanks for your help,
Kev

Additional:
Sorry – I am using a tabBarController… But instead of immediately launching the tab bar views I’m using the code below to launch the home menu instead.

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

    homeViewController *splashView = [[homeViewController alloc] initWithNibName:@"homeView" bundle:nil];
    [window addSubview:splashView.view];


//  [window addSubview:tabBarController.view];
    [window makeKeyAndVisible];

    return YES;
}

On the home menu there are UIButtons which need to link to individual tabs… Hope this clarifies…

Cheers!

  • 1 1 Answer
  • 2 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-16T08:27:57+00:00Added an answer on May 16, 2026 at 8:27 am

    Oh. Then it gets a bit more complex. What you want to do is basically this:

    1. Add a method to your AppDelegate – (void)showTabBarWithSelectedTab:(NSUInteger)tabIndex. In this method, use tabBarController.selectedIndex to select the correct index, then remove homeViewController’s view from the window and add tabBarController’s view instead.
    2. In homeViewController, have actions for the buttons that calls the newly created AppDelegate method with the correct tab index.

    Generally I would say that this adds a bit too much logic to the AppDelegate. Ideally you’d implement this in a new view controller, surrounding and managing both homeViewController and tabBarController. However, having a UITabbarController inside of another view controller isn’t officially supported – although you can get it to work anyway.

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

Sidebar

Related Questions

fairly new iPhone developer here. Building an app to send RS232 commands to a
Being fairly new to iPhone / Objective-C development, I wanted to ask this question
I'm a fairly new developer. When I try to submit my iphone app with
I am fairly new to iphone development and programming in general and am wondering
I am fairly new to iPhone development. Right now, I am working on an
I am fairly new to a objective-c or in whole mac/iphone development. My question
I'm fairly new to iPhone programming, and I'm making a fairly basic app. Anyway,
I'm fairly new to xcode and iPhone development and I'm wondering if it's possible
I'm fairly new to Objective-C and iPhone programming so I apologize if this is
Is there any reason I shouldn't do this? I'm fairly new at programming iPhone

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.