私のアプリではデフォルトのピン ドロップ アニメーションが機能しません。ここに私が書いたコードをいくつか示します。
- (void)viewDidLoad {
/*
some code...
*/
[theMapView addAnnotation:addAnnotation];
[addAnnotation release];
}
- (MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id <MKAnnotation>)annotation{
MKPinAnnotationView *annoView = [[MKPinAnnotationView alloc] initWithAnnotation:annotation
reuseIdentifier:@"current"];
annoView.animatesDrop = YES;
annoView.pinColor = MKPinAnnotationColorGreen;
return annoView;
}
現在、ピンはアニメーションなしのデフォルトの赤いピンとして画面に表示されています。MKMapViewDelegate
プロトコルが採用されています。誰でもここで何が問題なのかを確認できますか?