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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T15:30:41+00:00 2026-06-02T15:30:41+00:00

Lets say you present modal view controller (which is navigation controller) and push onto

  • 0

Lets say you present modal view controller (which is navigation controller) and push onto navigation stack 3-4 view controllers. Would dismissing modal view controller also pop these controllers from navigation stack, or will they continue to linger in memory?

I apple doc it states that when presenting multiple modal view controllers, if you dismiss the root one, all other will be dismissed, but animation of dismissal will happen only once. There is, however, no mention, what if you had pushed some controllers on modal view controller and then dismissed it.

  • 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-02T15:30:41+00:00Added an answer on June 2, 2026 at 3:30 pm

    When you dismiss the modal view controller, it will be deallocated from memory. So unless you keep a reference to it, everything will be removed, including its inner view controllers in the stack.

    However, if you do keep a reference to it, it will stay alive when dismissed, therefore keeping its current state. Next time you present it, it will be just as you left it.

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

Sidebar

Related Questions

lets say i have two view controllers, firstViewController and secondViewController. The firstViewController is supposed
I'm writing entries for cross-browser bugs/workarounds. I would like the main view to present
lets say I have function trigger(){ $('a.pep').each(function(){ $('a.pep').click(function(){ console.log($(this).val()); }); }); } function push(){
Lets say we have 5 tables Fact_2011 Fact_2010 Fact_2009 Fact_2008 Fact_2007 each of which
Lets say I have this code: <?php class hello { var $greeting = hello;
Lets say I have a loop in Bash: for foo in `some-command` do do-something
Lets say I have multiple DataGrids throughout my winform app and I want to
Lets say we have an average of one page fault every 20,000,000 instructions, a
Lets say I have a table with columns such as: ID Name City State
Lets say I display a window like so: [[TBAddTaskWindowController new] showWindow:self]; Where is 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.