-2
我想要實現像移動地圖時的功能,引腳也會移動並放置在我想要的位置並從當前位置變爲用戶。當拖動地圖然後釋放時如何移動引腳並放下
我曾嘗試以下代碼:
- (nullable MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id <MKAnnotation>)annotation {
if ([annotation isKindOfClass:[MKUserLocation class]]) {
return nil;
}
你可以成爲你想要的東西更清楚了嗎? –
請解釋你的問題。 –
我想要....當我移動地圖時,我當前的位置引腳也會移動並放在我想要的位置。並且從當前位置開始拾取位置....任何幫助都會感激 –