Jon*_*han 1 animation mkmapview mkannotation mkannotationview
我需要在MKMapview上添加大量注释,并且动画会给人留下针脚落在地图上的印象,这会花费大量时间来显示所有这些注释.
有人可以帮帮我吗?
对不起我的英语不好 !谢谢
您可以禁用使用animatesDrop属性删除动画
- (MKAnnotationView *) mapView:(MKMapView *)mapView viewForAnnotation:(id <MKAnnotation>) annotation{
MKAnnotationView *annView =[[[MKAnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:@"annotation"] autorelease];
annView.animatesDrop=FALSE;
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1279 次 |
| 最近记录: |