App delegate gets callbacks indicating state transitions. You can track it based on that.
Also the applicationState property in UIApplication returns the current state.
[[UIApplication sharedApplication] applicationState]
App delegate gets callbacks indicating state transitions. You can track it based on that.
Also the applicationState property in UIApplication returns the current state.
[[UIApplication sharedApplication] applicationState]