I would like to save some data from an array into a plist file when the applicationDidEnterBackground is called. I’m trying to figure it out how to access my array from the applicationDidEnterBackground method. Is there any best practice to do this?
Many thanks
Marcos
I would like to save some data from an array into a plist file
Share
Put the code in the class that actually has the data. Have the class register for the
UIApplicationDidEnterBackgroundNotificationnotification.With this setup you don’t have to get anything into the
UIApplicationDelegateand the responsibility is kept where it belongs.