annView.animatesDrop = FALSEを使用する必要がありますが、適切な場所に配置してください。そのannotationViewを作成した直後には、
- (MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id <MKAnnotation>)annotation
delegateメソッドになります。
覚えていれば、追加した同じ実行ループでannotationViewを選択することはできません。新しい実行ループで発生させるには、遅延を0に設定して、
- (void)performSelector:(SEL)aSelector withObject:(id)anArgument afterDelay:(NSTimeInterval)delay
を使用します。私の場合は
、私はあなたは `selectAnnotationを
[self performSelector:@selector(selectPlace:) withObject:annotation afterDelay:0];
- (void)selectPlace:(id)<MKAnnotation>place{
//Lots of stuff for my precise case
CLLocationCoordinate2D center;
center.latitude = place.latitudeValue;
center.longitude = place.longitudeValue;
MKCoordinateSpan span;
span.latitudeDelta = 4;
span.longitudeDelta = 5;
MKCoordinateRegion germany;
germany.center = center;
germany.span = span;
[mapView setRegion:germany animated:YES];
// End of custom stuff
[mapView selectAnnotation:(id)place animated:YES]; //This is what you're interested in
}
を試してみましたている:addAnnotationアニメーション:NO'? – tipycalFlow
ありがとう、それは本当に動作します。私は説明が正しく翻訳されていないようです。 – user1349248