Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在我的 iPhone 应用程序中使用 MKMapView。我想实现引脚注释拖动功能。我该如何实现这一点。函数 setCoordinate: 显示警告,MKPinAnnotationView 可能不响应 setCoordinate:。请帮忙。
这是因为MKPinAnnotationView没有实现坐标,但是注释却实现了。
MKPinAnnotationView
尝试使用:
[pin.annotation setCoordinate:(CLLocationCoordinate2D)];
这应该是诀窍(鉴于您称您MKPinAnnotationView为“pin”。