iPhone – didUpdateLocations – Retrieve co-ordinates


- (void) locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray *)locations {
CLLocation *currentLocation;

NSLog(@"Location: %@", [locations lastObject]);
currentLocation = [locations lastObject];
NSLog(@"Location: latitude %f", currentLocation.coordinate.latitude);
}

Leave a comment