0
-(MKAnnotationView *)GUmap:(MKMapView *)GUmap viewForAnnotation:(id <MKAnnotation>)annotation
{
MKPinAnnotationView *pinView =(MKPinAnnotationView *) [GUmap dequeueReusableAnnotationViewWithIdentifier:@"pinView"];
if (pinView==nil)
{
pinView = [[MKPinAnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:@"pinView"];
pinView.pinColor= MKPinAnnotationColorRed;
pinView.canShowCallout = YES;
pinView.animatesDrop = YES;
UIButton *rightButton = [UIButton buttonWithType:UIButtonTypeDetailDisclosure];
pinView.rightCalloutAccessoryView = rightButton;
}
else
{
pinView.annotation = annotation;
}
return pinView;
}
這應該動畫我的別針,但它什麼都不做,如果你解決我的問題,我會感激。我想動畫我的地圖上的針我寫了代碼,但它什麼也沒做