If I add an observer for UIApplicationWillTerminateNotification in a UIViewController, it fires after viewWillDisappear.
I have some code in the viewWillDisappear that needs to take a different action based on weather or not the application has been terminated or simply unloaded.
Can anyone suggest what开发者_C百科 could be done in this situation ?
TIA!
A crude hack, but you could add a boolean ivar which you set in applicationWillTerminate
and then check it in viewWillDisappear
精彩评论