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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T21:34:54+00:00 2026-05-11T21:34:54+00:00

I am finding it very difficult to grasp how the Views are loaded and

  • 0

I am finding it very difficult to grasp how the Views are loaded and wired with the TabBarController in the iPhoneCoreDataRecipes App.

Does anyone have any pointers on how to learn the concepts presented in this Apple sample App?
I have read the other items on Apple developer site.

- (void)applicationDidFinishLaunching:(UIApplication *)application {
   recipeListController.managedObjectContext = self.managedObjectContext;
   [window addSubview:tabBarController.view];
   [window makeKeyAndVisible];
}

My understanding of the above
Line 2: Populating the list controller?
Line 3: Adding a Sub view to the tab controller view?

If my understanding of line 3 is correct, where are the other views, Unit Conversion, added to the tabcontroller?

  • 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-11T21:34:54+00:00Added an answer on May 11, 2026 at 9:34 pm

    A tab bar controller requires a list of view controllers. I haven’t seen this specific sample, so it may be taken care of by the first line. However, normally you would do the following:

    1. Instantiate all view controllers:

      UIViewcontroller *viewControllerTab1 = ...
      UIViewcontroller *viewControllerTab2 = ...
      UIViewcontroller *viewControllerTab3 = ...
      
    2. Add them to the tab bar controller:

      tabBarController.viewControllers = 
        [NSArray arrayWithObjects:
           viewControllerTab1,
           viewControllerTab2,
           viewControllerTab3, 
           nil
        ];
      
    3. Then you would add the tabBarController’s view to the window as a subview, followed by window makeKeyAndVisible (lines 2 and 3). These are not specific to the tab bar, they just add the tab bar view to the main application view, like you would any other view controller.

    You may also either specify the UITabBarItem details here, or on the view Controllers. You should do it here so that you don’t run into any problems with the tab bar items not showing up. I.E.

    viewControllerTab1.tabBarItem = [UITabBarItem init...]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm finding it very difficult in discovering the correct method to configure my app
Currently I am designing a website and I am finding it VERY difficult to
I'm finding it very difficult to survey the options for game programming in Ruby.
I'm finding it very difficult to develop with PyClips, because it appears to replace
I am finding it very difficult to map a legacy database. Here is the
I am having a very hard time finding a standard pattern / best practice
I keep finding that if I have nested divs inside each other, and one
I'm having trouble finding an open-source IDE with support for Git. Are there any
A question I haven't seen answered that I'm finding very interesting. All the other
I am finding often the need to very often wait until the next second

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.