我正在尝试使用反向地理编码,但该功能没有执行,也不确定为什么..
在这里,我附上了我的代码。感谢您的帮助
//-- reverse geocode, converting from point to address 
- (BNRMapPoint *)geocodeLocation:(CLLocation *)location title:(NSString *)title
{
    if(!geocoder)
    {
        geocoder = [[CLGeocoder alloc] init];
    }
    __block BNRMapPoint * annotation;
    [self.geocoder reverseGeocodeLocation:location completionHandler: 
     ^(NSArray * placeMarks, NSError * errors)
     {
         NSLog(@"in block code");
         if([placeMarks count] > 0)
         {
             NSLog(@"%@", [placeMarks objectAtIndex:0]);
             annotation = [[BNRMapPoint alloc] initWithCoordinate:location.coordinate title:title
                                                    placeMark:[placeMarks objectAtIndex:0]];
             NSLog(@"%@", annotation.placeMark.name);
         }
         else
         {
             NSLog(@"failed!!");
         }
     }];
    return annotation;
}
它没有在控制台打印任何东西..所以我认为它没有输入块代码。但我真的很困惑为什么它没有进入。再次感谢你的帮助