Click here to Skip to main content
Click here to Skip to main content

View Unloading into the Future!

By , 4 Mar 2013
 
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 »

License

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

About the Author

NSProgrammer
Technical Lead
United States United States
Member
No Biography provided

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'.
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
-- There are no messages in this forum --
Permalink | Advertise | Privacy | Mobile
Web02 | 2.6.130513.1 | Last Updated 4 Mar 2013
Article Copyright 2013 by NSProgrammer
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid