Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

tranvutuan

macrumors member
Original poster
Dec 19, 2011
74
0
Hi everyone
My purpose is after hitting the Home button from the device, I want to clear all release shared resources, save user data by using
Code:
(void)applicationDidEnterBackground :(UIApplication *)application
Can somebody give me a hint how to do it. Thanks a lot
 
This really depends on your shared resources and how you deal with user data. You should also really consider if you want to clear those resources just because you went into background. Sometimes it is better to hang onto that memory in case the user is coming right back. If it will take a noticeable amount of time to repopulate then just keep it and release if you get low memory warning.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.