Created
February 5, 2014 10:33
-
-
Save kaneshin/8820867 to your computer and use it in GitHub Desktop.
逆ジオ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma mark - CLLocationManagerDelegate | |
- (void)locationManager:(CLLocationManager *)manager | |
didUpdateLocations:(NSArray *)locations | |
{ | |
[manager stopUpdatingLocation]; | |
DLog(@"location %@", locations); | |
CLGeocoder *geocoder = [[CLGeocoder alloc] init]; | |
[geocoder reverseGeocodeLocation:locations[0] completionHandler:^(NSArray *placemarks, NSError *error) { | |
CLPlacemark *placemark = placemarks[0]; | |
DLog(@"Reverse: %@", placemark.name); | |
}]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment