If the user has location services, I designate the RootController as my delegate:
appDelegate.clLocationManager.delegate = self;
where appDelegate is an instance of my application delegate in which I have an instance of location services. clLocationManager is an instance of CLLocationManager. If I find that the user is outside a specific region, I want to disable location service delegates. I'm doing it:
appDelegate.clLocationManager.delegate = nil;
But this method still works:
- (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation
Is there any other way to disable location services, or at least refrain from its methods?
source
share