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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T23:15:00+00:00 2026-06-03T23:15:00+00:00

in a UINavigationController, when es dealloc called? In my app, i have 4 ViewController:

  • 0

in a UINavigationController, when es dealloc called? In my app, i have 4 ViewController:

View1Controller->View2Controller->View3Controller->View4Controller

If im in View2Controller and push Back Button to go to View1Controller, dealloc in View2Controller is called. But if im in View1Controller and go to View2Controller, dealloc never called in View1Controller.

It´s is OK? Or Its a leak?

Thanks.

EDIT

  • 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-03T23:15:02+00:00Added an answer on June 3, 2026 at 11:15 pm

    Pushing and popping view controllers on a UINavigationViewController stack acts like a stack in the general sense. If you had a stack that contains numbers, pushing 2, then 36 would give you a stack of 2 numbers, you wouldn’t expect the 2 to disappear. Pushing a view controller is exactly the same, when you push ViewController2, you wouldn’t expect ViewController1 to disappear.

    However, with popping it’s different. If you pop off the 36 you wouldn’t expect the 36 to still exist. Same with view controllers. Pop off ViewController2 and it will get dealloced when the user interface displays ViewController1 views.

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

Sidebar

Related Questions

As everyone know the UINavigationController push a ViewController from Left To Right, is there
I have a UINavigationController. On the right top i have a button on click
I have a UINavigationController based app. I can programatically set the title of the
I have a UINavigationController where the user can go back/fourth. When the user goes
In a UINavigationController I have a UITableView . I use a settings-button to allow
I have to use a UITabBarController inside UINavigationController. Everything seems to be right, but
I have a UINavigationController that has its left and right button properties set. Instead
I have a UINavigationController and on the UINavigationBar i have a Button. When i
I currently have a UINavigationController based application that works just fine. I'd like to
I have a UINavigationController and I have seperate UIViews that I switch between using

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.