如何使MKMapView:showAnnotations平滑动画?

时间:2014-03-11 17:27:25

标签: ios mkmapview

如果我添加一些注释然后调用MKMapView:showAnnotations:那么默认动画非常糟糕和不稳定,不是我所期望的(像MKMapView rescaleToCoordinate这样的东西不是生涩)。

无论如何要制作MKMapView:showAnnotations移动并缩放地图而不会让它看起来很糟糕吗?

1 个答案:

答案 0 :(得分:0)

你的地图转换看起来生涩的原因是因为你设置了“animated:false” mapView.showAnnotations(annotations,animated:false)

将其更改为: mapView.showAnnotations(annotations,animated:true) 并且你的注释会变得流畅。