Hi there,
If the user is currently in my edit view controller, I want to be able to save the changes when the user closes my app. To do this I am observing the UIApplicationWillTerminateNotification
of the shared application. In my app delegate, I use the applicationWillTerminate:
method to close things down and release all my core data contexts.
The problem I'm finding is that the applicationWillTerminate:
method in the app delegate gets called before any observers react to the UIApplicationWillTerminateNotification
notification. This means that my core data stack has been released and closed before my edit view controller gets a chance to save anything!
How is this usually overcome because I can't see a way!
Many thanks,
Michael