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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:06:10+00:00 2026-05-26T11:06:10+00:00

I have a tabbed application with navigation controllers in tabs and view controller in

  • 0

I have a tabbed application with navigation controllers in tabs and view controller in them. When I press some tab item and go deep inside view controller hierarchy (that is maintained by navigation controller), what happens when I press tab item directly? IMHO all the view controller are on stack in memory and if I start navigating again from the the first view controller deep then I’m putting a copies of view controller on navigation stack. How should I do proper memory management? IMHO i need to release (pop) all view controller that are on screen (EXCEPT the first one) when user click some tab item. How to achieve that?

  • 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-26T11:06:11+00:00Added an answer on May 26, 2026 at 11:06 am

    The system will take care of unloading un-needed views when it needs memory (and reloading them when they are needed), so if you have implemented the viewDidUnload and receivedMemoryWarning method correctly, you should be fine. The view controllers themselves take hardly any memory (unless you’ve allocated tons of stuff yourself). In any case they are not allocated on the stack, as objects they are allocated on the heap (general objective c rule of thumb). When you push a view controller it is retained, when you pop a view controller it is released. Usually you wouldn’t expect the navigation controller in each tab to pop back to root because you pressed another tab, but if you really want to do that then you can use popToRootViewController method.

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

Sidebar

Related Questions

I have a tabbed application with navigation controllers in tabs and view controller in
I have a storyboard setup as a Tabbed Application with first view controller containing
I have an android tabbed application and inside one of my tabs is an
I have a tabbed application with 3 tabs The first tab is a table
I have an iOS 5 Tabbed Application, using Storyboards. My Tabbar Controller points to
What i have is a tabbed page with 12 tabs (every tab is a
My application is a Tabbed Application, and it have several controllers under the tabBarController.
I have made a MDI (tabbed) application that uses PictureBoxes inside TabPages. The picturebox
I have a tabbed application and when I click on the second tab, an
I'm working on an MVC application where I have a tabbed navigation where the

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.