Can anyone help me solve this error:
purpose is deprecated
What can I do to make this work?
- (CLLocationManager *)locationManager {
if (_locationManager != nil) {
return _locationManager;
}
_locationManager = [[CLLocationManager alloc] init];
_locationManager.desiredAccuracy = kCLLocationAccuracyNearestTenMeters;
_locationManager.delegate = self;
_locationManager.purpose = @"Your current location is used to demonstrate PFGeoPoint and Geo Queries.";
return _locationManager;
}