我正在努力让我的 MKReverseGeocoder 真正完成。这就是我所做的:
// reverse geocode the user location
geocoder = [[[MKReverseGeocoder alloc] initWithCoordinate:mapView.userLocation.location.coordinate] autorelease];
geocoder.delegate = self;
[geocoder start];
userLocation 坐标是有效的,我知道。我有 didFindPlacemark 和 didFailWithError,但没有一个被击中......我的委托设置错误或者我不知道......这是标题:
@interface E_85AppDelegate : UIViewController <UIApplicationDelegate, MKMapViewDelegate, MKReverseGeocoderDelegate, CLLocationManagerDelegate>
{
IBOutlet UIWindow *window;
IBOutlet UITabBarController* tabBarController;
IBOutlet MKMapView* mapView;
IBOutlet MKReverseGeocoder* geocoder;
// other class members...
}
有任何想法吗?