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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T11:48:30+00:00 2026-06-10T11:48:30+00:00

I have a project with custom back/home button and when user hit it i

  • 0

I have a project with custom back/home button and when user hit it i call:

  -(IBAction)backBtnTapped:(id)sender {
    [appDelegate.navController popToRootViewControllerAnimated:YES];
}

Now i see that it didn’t call viewDidUnload method. Why? How to force unload VC (and views in it) in ARC project?

  • 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-10T11:48:30+00:00Added an answer on June 10, 2026 at 11:48 am

    The method viewDidUnload will only be called when you have a memory warning not when the view is out of the screen, for this you probably will want to use viewDidDisappear: or viewWillDisappear

    For a better explanation of the viewDidUnload method you can take a look at this question: When is UIViewController viewDidUnload called?

    So you probably did not need to care when your viewDidUnload is called, only that it do what it need to do. Also that you are taking care of what you need to take care in viewDidDisappear: or viewWillDisappear.

    Force the unload is probably not the best way to take care of that, maybe if you have a lot of logic in this method you need to change it to some other method. Do not worry about call the release or dealloc, just be sure that you do not have circular references in your project, and also that you are using the weak and strong references appropriately so the arc will work well.

    Hope it help you!

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

Sidebar

Related Questions

I have a custom button in an activity. It works fine. I hit back,
I have visual studio setup project with a custom RadioButtons dialog. How do I
I have sevevral custom actions as part of an MSI project, defined in vS2008.
I have a custom HttpModule rewrite engine in an existing web application project that
I have a custom build target in a visual studio 2008 c# project. Is
In my project I am using custom android devices and I have to encrypt
I have an ASP.NET project which has already some custom fields in it's web.config
I have a .NET deployment project. I would like to add a custom uninstall
I currently have a file abc.htm in my Custom Server Control Project and it's
I have included Django comments framework in my project, and added custom templates to

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.