2
皆さん! これをビルドすると、objectForKeyに警告が表示されます。警告には次のように書かれています。 "引数1を渡す 'objectForKey:'互換性のないポインタ型から" 誰もこの問題を解決する方法を知っていますか?ObjectForKeyの引数と互換性のないポインタ型の受け渡し
- (void)reverseGeocoder:(MKReverseGeocoder *)geocoder didFindPlacemark:(MKPlacemark *)placemark{
NSString *streetAddress = [NSString stringWithFormat:@"%@",
[placemark.addressDictionary objectForKey:kABPersonAddressStreetKey]];
mapView.userLocation.subtitle = streetAddress;
}
ありがとうございました!