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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T08:04:04+00:00 2026-06-12T08:04:04+00:00

I have a set of five UINavigationControllers in a UITabBarController. The problem is that

  • 0

I have a set of five UINavigationControllers in a UITabBarController. The problem is that only some of the UINavigationControllers are having viewWillAppear: called in their respective UITableViewControllers.

My current set up is:
(Everything is created programmatically)

                        |
                tabBarController
              (UITabBarController)
                        |
        ---------------------------------------- ...etc...
        |                              |
tempNavController               tempNavController      <--- Secondary NavContr
(UINavigationController)      (UINavigationController)      Not subclassed
        |                              |
scheduleViewController        currentViewController
(UITableViewController)       (UITableViewController)
        |                              |
        ...more UITableViewControllers...

Only some of the UITableViewControllers are calling viewWillAppear and viewDidAppear, and the ones that do, are not calling it for each way the view can appear. Some only call it when the I push to the view, some only when I pop to the view, and some only when I switch the tab to the view.

What would be causing the issue to only appear in some UITableViewControllers and not all of them? and why only in some of the ways the view can appear? All of the tabs and tables are set up in the same manner.

EDIT: Here is the code I use to set the tabs up:

- (void)viewDidLoad
{
    //Setup of two of the tabs
    //Create navigation controller and root view for each tab
    //Current Comps
    CurrentCompsViewController *tempCurrentCompsViewController = [[CurrentCompsViewController alloc] init];
    [tempCurrentCompsViewController setAProgram:self.currentProgram];
    self.currentCompsviewcontroller = [[UINavigationController alloc] initWithRootViewController:tempCurrentCompsViewController];

    //Comp List
    CompetitionListViewController *tempCompListViewController = [[CompetitionListViewController alloc] init];
    [tempCompListViewController setAProgram:self.currentProgram];
    self.competitionListViewController = [[UINavigationController alloc] initWithRootViewController:tempCompListViewController];

     //Create and add tabBarItems
    UITabBarItem *compListITem = [[UITabBarItem alloc] initWithTitle:@"Competitions" image:[UIImage imageNamed:@"CompsIcon.png"] tag:6];
    [self.competitionListViewController setTabBarItem:compListITem];

    UITabBarItem *curentItem = [[UITabBarItem alloc] initWithTitle:@"Current Comps." image:[UIImage imageNamed:@"CurrentIcon.png"] tag:7];
    [self.currentCompsviewcontroller setTabBarItem:curentItem];

    //Add everything to tab array, and sort tabs... etc...
}

I don’t override anything to do with selecting items in the tab view and do not subclass the navigation controllers at the root of each tab.

  • 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-12T08:04:06+00:00Added an answer on June 12, 2026 at 8:04 am

    Turns out I forgot to call “[super viewWillAppear:animated]” in viewWillAppear:, viewDidLoad, and viewDidAppear:.
    Always call back to the super class when you can.

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

Sidebar

Related Questions

I have a set of five functions, that could be called one of five
I have a set of combo boxes that are driven by five stores and
I have created a WinForms user control that is a set of five cascading
Problem I'm having trouble with a regular expression. I have a set of strings.
Imagine you have a set of five elements (A-E) with some numeric values of
I have set up a sample polyline with five segments , and I'm allowing
i have a question about using GalleryView. At first, i set five default images
I have set the eclipse java formatter to wrap lines that exceed 120 characters
I have a set of XML documents that all share the same schema. (They're
I am trying to make an application that will have a set of screens

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.