Is there a way to detect the event when device goes to sleep and the screen blackens?
I want to detect the event when the iOS device goes to sleep and the screen blackens?
Is there any way to do it?
iPhone 4S, iOS 6, pausesLocationUpdatesAutomatically