I'm making an iPhone application that uses the user location, however I've noticed that when the iPhone screen sleeps/turns off, the phone is still using user location. So is there a function that can tell me when the screen sleeps so i can stopUpdatingLocation?
@interface RideauAppDelegate : NSObject <UIApplicationDelegate, UITabBarControllerDelegate> {
UIWindow *window;
UITabBarController *tabBarController;
}
@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet UITabBarController *tabBarController;
@end