How to dissmiss the add Annotation Animation of a MKAnnotation?

非 Y 不嫁゛ 提交于 2020-01-24 19:31:09

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!