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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T12:02:02+00:00 2026-05-20T12:02:02+00:00

I have a very basic iphone app where the following steps occur. App Delegate

  • 0

I have a very basic iphone app where the following steps occur.

  1. App Delegate which loads…
  2. Game root view controller (this is just 2 buttons, “start game” and “continue game”)
  3. When the start game button is clicked load RootViewController.
  4. Root View Controller with a tab bar controller??

I’m really not sure how games do this in iPhone apps but the above is my best guess.

I want the tab bar controller only to appear inside the RootViewController, but regardless of what I do I cannot make the tab bar controller appear inside this view.

I can however make normal tab bars appear. But this is not a tab bar controller, I need control over what each of these tabs do (navigation controller, table controller, etc).

According to the docs one of the many ways of using a tab bar controller is via the application’s main window. But it doesn’t say whether you can use it in a normal view; or indeed how.

I tried several attempts to make the tab bar controller appear to no avail.

For example, in my GameRootViewController inside the button if I do this;

-(IBAction) btnPress {

    RootViewController *root = [[RootViewController alloc] initWithNibName:@"RootViewController" bundle:nil];

    [self.view addSubview:root.tabBarController.view];

    [root release];
}

Nothing appears.

If I try the normal way of doing:

[self.view addSubview:root.view];

The view appears but I never see the tab bar controller.

This makes me very confused.

I’m thinking possibly that games/apps could do this:

  1. App Delegate
  2. Load all the splash screens, credits, made by…etc
  3. Load the start game, continue game screen and handle the actions these create
  4. Make the app delegate window add the tab bar controller to the self.window.

But I am not sure. I want to clarify/understand whether I can put tab bar controllers inside of view controllers, or can they only ever be used inside the app delegate?

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

    Firstly, don’t confuse controllers with views. Views are visible parts of the UI, controllers are invisible objects behind the scenes. You don’t put controllers inside of views or controllers “inside” other controllers. Instead, controllers exist in various hierarchies and the structure of those hierarchies dictates which views appear when and where.

    You are using a tabbar in a none standard way (which may confuse users) but you need put the tabbar controller inside of a navigation controller so that you get an hierarchy that looks like:

    navigationController (rootViewController)
        -->TabBarController(secondController)
            -->tabViewController1
            -->tabViewController2
            -->tabViewController3
    

    So, you first visible view is the button view which is controlled by the rootController of the navigationController. Upon selecting a button, it pushes the TabViewController onto the nav stack which brings the tabbar into view with it’s default tab selected. (Note you will have to hide the navigation bar to make the navigation stack invisible to the user.)

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

Sidebar

Related Questions

I have a very basic doubt regarding the method that gets executed when app
I recently upgraded VS 2005 to VS 2008. Unfortunately I have a very basic
I am implementing a very simple file database. I have 2 basic operations: void
I have a very simple problem which requires a very quick and simple solution
I have a very simple WPF application in which I am using data binding
I have been working on an iPhone app that has a feature of uploading
So I'm making a very basic Twitter app (it's actually Presence 2 from the
I'm developing my first iPhone app, and while implementing user preferences, I have a
We have very strange problem, one of our applications is continually querying server by
I have very little experience building software for Windows, and zero experience using the

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.