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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T22:19:39+00:00 2026-06-12T22:19:39+00:00

Given that iOS6 no longer unloads views, and hence no longer calls UIViewController ‘s

  • 0

Given that iOS6 no longer unloads views, and hence no longer calls UIViewController‘s viewDidUnload, I was wondering if there is a reliable way to cause this same behaviour on iOS5?

That is, I’d really like to stop my views unloading on iOS5, for all the same reasons Apple give for why they no longer unload views on iOS 6 (because it no longer saves any significant amount of memory, and is almost always a source of extra bugs). I’d far rather spend my time developing useful features than testing lots of cases that can now only happen on iOS5 and only in low memory!

I’ve had a search around and can’t find anyone who has asked this question before, which surprises me. Could it just be as simple as retaining an extra reference to self.view in viewDidLoad (and releasing it only in dealloc)? Are there any likely traps?

  • 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-12T22:19:40+00:00Added an answer on June 12, 2026 at 10:19 pm

    On iOS5 it is not supported to stop views from unloading and this would also result in a huge memory problem as the way iOS6 handles views is completely different. In iOS6 the backing store of the views is still be removed from memory if necessary – or at least it is marked to be able to be removed from memory. To my knowledge, on iOS5 this isn’t the case. The backing store is removed only if the view itself is removed, even if the view itself is only a couple of bytes in size.

    Have a look at this great post: View Controller Lifecycle in iOS 6
    This might give you an idea on how complex is, what you are asking for.

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

Sidebar

Related Questions

Given that one can define a class in VB Script, is there any way
Given that Scala support is itself a plugin in intellij, is there any way
Given that the Rails Way seems to be not to use foreign key constraints,
viewDidUnload is no longer called in iOS6, so as a workaround for an app
Given that Unicode has been around for 18 years , why are there still
Given that there are many sizes and color depths for different phones (even for
Given that there is a tree depicted as below: d1a--d1b---d1c--d1d--d1e <dev> / / \
Given that the web application doesn't have su privileges, I'd like to execute a
Given that an input String may be specified as follows: read(xpath(‘...’)) or xpath(‘...’) or
Given that I have a Foo model w/ the standard Rails timestamp columns what

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.