Click here to Skip to main content
12,450,886 members (49,407 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as



View Unloading into the Future!

, 4 Mar 2013 CPOL
Rate this:
Please Sign up or sign in to vote.
Let's jump into memory warnings!
When Apple released iOS 6, they stated that developers were having "trouble" with properly using viewDidUnload and viewWillUnload and decided that ultimately the memory hit from releasing objects in these methods wasn't enough of a concern to keep those methods and they were deprecated. It was basically a nice way of saying that a lot of developers are so terrible at view lifecycle management that they were just going to remove the unload methods so that developers didn't continue to mess up their app by not know what their doing.  Now I personally applaud Apple for taking into account this problem and dealing with it in a way that doesn't hurt legacy apps.  However, I do believe that all APIs are tools that when wielded appropriately can be useful for building something that works well. So when viewDidUnload and viewWillUnload were deprecated, one of the first things I set out to do was port them into the future so that I could continue to use these "tools" into the future. Now, if you don't want to use viewDidUnload or viewWillUnload and want to conform to Apple's recommended application life cycle design guidelines then this article won't likely help you, and I must credit your wisdom. For the rest of you, let's jump into memory warnings!

viewWillUnload and viewDidUnload ported to iOS 6

Read more »


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Technical Lead
United States United States
No Biography provided

You may also be interested in...


Comments and Discussions

-- There are no messages in this forum --
| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160826.1 | Last Updated 4 Mar 2013
Article Copyright 2013 by NSProgrammer
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid