【发布时间】:2010-12-22 09:28:51
【问题描述】:
我正在尝试根据我的地理位置获取城市名称。问题是我在这个方法中从标题中得到编译时错误。我做错了什么?
- (void)reverseGeocoder:(MKReverseGeocoder *)geocoder didFindPlacemark:(MKPlacemark *)placemark
{
MKPlacemark * myPlacemark = placemark;
// with the placemark you can now retrieve the city name
NSString *city = [myPlacemark.addressDictionary objectForKey:(NSString*) kABPersonAddressCityKey];
}
【问题讨论】:
标签: iphone objective-c geolocation gps