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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T22:55:14+00:00 2026-06-11T22:55:14+00:00

This is more of a discussion on an issue and my implementation, which seems

  • 0

This is more of a discussion on an issue and my implementation, which seems to be causing issues.

My app has a tab bar and navigation controllers. Within each tab you can go into views, and the tab bar will be hidden until you click back from your sub view.

I have a navigation controller for each on my tabs, these are declared as outlets in my app delegate and also have @class tab1navcontroller

A typical use would be.

MyAppDelegate *delegate = (MyAppDelegate *)[[UIApplication sharedApplication] 
       delegate];
[delegate.tab1NavController pushViewController:nextController animated:YES];

I haven’t had many problems with this in the past and I believe I copied the approach from a book I was reading at the time.

However, I had a discussion with a colleuge some months ago who said I should only have one navigation controller for my app.

At the time I did try and replace the code (shown above) and use self.navigationcontroller instead, but this caused problems, I can’t remember what they were, but I discarded those fixes.

Today an error has occurred, when the view is pushed and back tapped quickly.
I also ran the app with the zombie profiler and this indicated the code above was the problem.

I believe the code above could be causing leaks.

I just don’t know what approach is best and where to go from here ?

  • 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-11T22:55:15+00:00Added an answer on June 11, 2026 at 10:55 pm

    As @Dima said in the comment, your colleague was wrong. In my app I have one tabbarController as the window rootViewController. You can either expose it in a property or its viewController array or the individual navigation controllers. You CANNOT reuse a navigation controller in multiple tabs – its one for each, or a mix. That is, in my tabbarController, I have 4 naviationControllers and one plain UIViewController subclass.

    The tab bar controller retains the all its viewControllers, and the navigationControllers retain all their viewControllers. That said, you get into problems if you have a ‘assign’ type reference to a viewController that gets popped.

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

Sidebar

Related Questions

A discussion about Singletons in PHP has me thinking about this issue more and
This is perhaps more of a discussion question, but I thought stackoverflow could be
UPDATE: I've been playing around with this more, and it seems like tmux's clear-history
This is more of a curiosity really, to see if some one has done
In my experience, this has been a contentious issue between backend (database developer) and
This question has been asked more than once before, but I have not found
I'm looking for a rather arbitrary answer, so this might more be a discussion.
We have been discussing this at work and now I am even more confused
I want to know this more in detail. Is it a realtime scheduler? An
To make this more clear, I'm going to put code samples: $file = fopen('filename.ext',

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.