How to dissmiss the add Annotation Animation of a

2019-08-06 12:22发布

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条回答
迷人小祖宗
2楼-- · 2019-08-06 12:46

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;
}
查看更多
登录 后发表回答