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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T02:46:54+00:00 2026-06-09T02:46:54+00:00

I am very new to iOS development and would appreciate if experts here would

  • 0

I am very new to iOS development and would appreciate if experts here would be able to help me with my problem. At the moment, my application is extremely basic and does nothing much. Prior to trying to add a tab bar to my existing view, things worked fine. I am not sure what I’m missing but nothing is showing when I run the simulation. I’ll try my best to explain the structure of my application so that you guys can understand the problem better.

The following are currently present in the application…

  1. FeedList: A UITableViewController embedded inside a UINavigationController.
  2. FeedCell: A UITableViewCell created for FeedList.
  3. FeedItemDetail: A UIViewController with a UIScrollView within it. User will be brought to this screen by tapping on a cell in FeedList.

Below are the codes for AppDelegate.h and AppDelegate.m. I would greatly appreciate it if someone is able to tell me why nothing is showing on my simulation screen. Thanks!

    //AppDelegate.h
    #import <UIKit/UIKit.h>

    #import "FeedList.h"

    @interface AppDelegate : NSObject <UIApplicationDelegate>
    {
        UIWindow *window;
        FeedList *feedList;
        UITabBarController *tabBarController;
    }

    @property (nonatomic, retain) IBOutlet UIWindow *window;
    @property (nonatomic, retain) FeedList *feedList;
    @property (nonatomic, retain) UITabBarController *tabBarController;

    - (void)customizeAppearance;

    @end

    //AppDelegate.m
    #import "AppDelegate.h"

    @implementation AppDelegate

    @synthesize window, feedList, tabBarController;

    // Entry point
    - (void)applicationDidFinishLaunching:(UIApplication *)application
    {
        tabBarController = [[UITabBarController alloc] init];
        feedList = [[FeedList alloc] init];
        UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:feedList];
        tabBarController.viewControllers = [NSArray arrayWithObject:nav];
        [window addSubview:tabBarController.view];
        [window makeKeyAndVisible];
    }

Update (problem solved)

I realized that after adding the line tabBarController.viewControllers = [NSArray arrayWithObject:nav]; things start to go haywire. After checking Apple’s Documentation, the reason is because if the value of this property is changed at runtime, the tab bar controller removes all of the old view controllers before installing the new ones. It is therefore required that we set the new tab bar controller as the root view controller.

  • 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-06-09T02:46:56+00:00Added an answer on June 9, 2026 at 2:46 am

    I agree with Dustin’s comment, you should use the storyboard if you are starting off new. What I see wrong with your method, or different from typical anyway, is that you don’t add tabBarController as subview you set the rootViewController of self.window like so:

    // Entry point
        - (void)applicationDidFinishLaunching:(UIApplication *)application
        {
            tabBarController = [[UITabBarController alloc] init];
            feedList = [[FeedList alloc] init];
            UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:feedList];
            tabBarController.viewControllers = [NSArray arrayWithObject:nav];
            //******* This is my correction *******
            window.rootViewController = tabBarController;
            //*******                       *******
            [window makeKeyAndVisible];
        }
    

    Of course there is no way to tell from the info you provided if your tableview is set up right so there is no guarantee this will display your table.

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

Sidebar

Related Questions

Hi I'm very new to ios development. I'm developing a map application where I
i am very new to iOS development, i am stuck with issue here and
I am very new at iOS and objective-c development, so I am struggling with
I am a new iOS developer. I got a very basic doubt. I read
I am VERY new with iOS development. So, please make your response as exact
I'm very new with iOS Development and I have just created one of my
I'm very new to IOS programming and i have doubt with NSThread. My problem
Ok, so I am very very new to iOS development and also to PHP
I am quite new to IOS development, so forgive me if this problem turns
i am very new to ios development, rather i have just started work on

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.