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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T11:12:54+00:00 2026-06-18T11:12:54+00:00

I have an app with a UITabBarController , a few UINavigationController nested in it,

  • 0

I have an app with a UITabBarController, a few UINavigationController nested in it, and subclasses of UITableViewController inside those navigation controllers. When I try to push a newly created UITableViewController onto an existing navigation controller with an existing tableView in it, the app hangs, and Instruments shows that it keeps allocating something, over and over again, with a call to [UIWindow _subtreeMonitorsForView:], whatever that is.

I’m pushing the controller in a very simple way, just:

_orderForm = [[OrderFormViewController alloc] init];
[self.navigationController pushViewController:_orderForm animated:YES];

If I change it so that I push a plain UIViewController instead of a table, it works just fine. That is, if I just change the declaration in the OrderFormViewController.h file from UITableViewController to UIViewController and it shows me the blank view, no hanging. What could be the problem?

Note, the content of OrderFormViewController.h is very bare bones, contains just the standard built in functions. I tried pushing a different subclass of UITableViewController (which works fine when used to initialize a UINavigationController) and the result is the same – app hangs and keeps eating memory.

  • 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-18T11:12:56+00:00Added an answer on June 18, 2026 at 11:12 am

    I have found the culprit to this and a couple of other similarly acting bugs. It was the fact that I doing this in my app delegate before instantiating my controllers:

    UIView *bg = [[UIView alloc] initWithFrame:CGRectZero];
    bg.backgroundColor = [UIColor whiteColor];
    [[UITableView appearance] setBackgroundView:bg];
    

    Something about using [UITableView appearance] just does not play well with the code down the line, including being unable to use UIDatePicker in any variation (though UIPickerView still worked, which only confused me further).

    For some reason the whole UIAppearance protocol, as promising as it sounds, is having some issues, this is not the first time I found it to be the cause of some odd bugs. Getting rid of it makes everything work perfectly.

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

Sidebar

Related Questions

So I have a Project with a UITabBarController and a few Navigation Controllers, and
I have an app which uses a UITabBarController which contains 4 different navigation controllers.
So I have this iPhone app with a nested setup like this: [RootViewController]->[UITabBarController]->[UINavigationController]->[subViewControllers]. Everything
I have an app with a custom UITabBarController that contains five view controllers. Within
I have an app that has a UINavigationController that pushes a UITabBarController into view.
in my app i have an UITabBarController with UINavigationControllers initialized like this UINavigationController *newsNavigationController
I have an app which consists of three layers of view controllers: UITabBarController =>
In my app I have a UINavigationController within a UITabBarController. Everything is working fine,
I have a small multiview app. It consists of a UITabBarController with a nav
I have an app which is a UITabBarController, I have defined two subviews Both

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.