Hi guys,
I have problem with CLLocationManager purpose property. I set it up in my viewDidLoad:
PHP Code:
self.locationManager = [[CLLocationManager alloc] init];
self.locationManager.delegate = self;
self.locationManager.desiredAccuracy = kCLLocationAccuracyBest;
self.locationManager.distanceFilter = 100;
self.locationManager.purpose = [NSString stringWithFormat:@"We'll spy on you!!!"];
In my viewWillAppear I call startUpdatingLocation.
However when I launch the app in the simulator or device for the very first time, I get just message "xxx app would like to use your current location" - the purpose string is not shown - why???
Cheers for replies