So this would work:
Code:
- (void)locationManager:(CLLocationManager *)manager didFailWithError:(NSError *)error {
if (error == kCLErrorDenied) [locationManager stopUpdatingLocation];
else if (eror == kCLErrorLocationUnknown) {
[locationManager stopUpdatingLocation];
// open an alert with just an OK button
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Whoops!" message:@"Your GPS location could not be determined. Try again."
delegate:self cancelButtonTitle:@"OK" otherButtonTitles: nil];
[alert show];
[alert release];
}
}
?
I hope Apple actually tells me what the problem is soon.
- Charlie