I assume that I need to implement:
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(resignActive:) name:UIApplicationWillResignActiveNotification object:nil];
but I'm not sure if this is the correct notification to determine that my application is about to leave an active state.
Is this a good place to cancel network connections along with the termination of the application?
objective-c iphone cocoa-touch nsnotifications multitasking
Sheehan alam
source share