kABPersonAddressCityKey未声明的问题
我想根据我的地理位置获取城市名称。问题是我在这个方法中从title获得编译时错误。我做错了什么?
- (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];
}
没有找到相关结果
已邀请:
2 个回复
舜辉
babsoft