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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T09:04:27+00:00 2026-06-12T09:04:27+00:00

Before iOS5 most people did it in dealloc. By iOS5 that functionality migrated to

  • 0

Before iOS5 most people did it in dealloc. By iOS5 that functionality migrated to viewDidUnload. Now that viewDidUnload is deprecated and never gets called, it would seem we will have to find new spot to unregister our observer.

Question is, where?

  • 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-12T09:04:28+00:00Added an answer on June 12, 2026 at 9:04 am

    From the Apple docs views are never unloaded anymore.

    Prior to iOS 6, when a low-memory warning occured, the
    UIViewController class purged its views if it knew it could reload or
    recreate them again later. If this happens, it also calls the
    viewWillUnload and viewDidUnload methods to give your code a chance to
    relinquish ownership of any objects that are associated with your view
    hierarchy, including objects loaded from the nib file, objects created
    in your viewDidLoad method, and objects created lazily at runtime and
    added to the view hierarchy. On iOS 6, views are never purged and
    these methods are never called. If your view controller needs to
    perform specific tasks when memory is low, it should override the
    didReceiveMemoryWarning method.

    So, you put your unregister command into -(void)dealloc or -(void)didReceiveMemoryWarning. Even in Arc -(void)dealloc get’s called, you just can’t have a call to [super dealloc].

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

Sidebar

Related Questions

Before ios 5 AVFoundationFramework is used but it is not working with ios5 storyboard
before I start I want to point out that I tagged this question as
Before asking the question let me preface with the fact that I am new
Before I ask my question, I want to mention that I am only today
Before saying anything I have to say that, albeit I'm an experienced programmer in
Before I ask the question let me state that I have attempted to google
Ok... Before you strangle me for making this topic, I really did search through
I have an ios5 app developed using storyboards that currently displays a tab bar
I just installed iOs5, and almost all went surprisingly fluent - but now I
Before I begin, I should tell you that this only happens in iOS 5.1.

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.