问题
I need to add a big number of annotations on a MKMapview and, the animation which give the impression that the pin falls on the map make that take lot of time to display all of them.
Anyone can help me ?
Sorry for my english ! Thanks
回答1:
You can disable dropping animation with animatesDrop
attribute
- (MKAnnotationView *) mapView:(MKMapView *)mapView viewForAnnotation:(id <MKAnnotation>) annotation{
MKAnnotationView *annView =[[[MKAnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:@"annotation"] autorelease];
annView.animatesDrop=FALSE;
}
来源:https://stackoverflow.com/questions/9610796/how-to-dissmiss-the-add-annotation-animation-of-a-mkannotation