iOS版SDK的GoogleMaps - animateToCameraPosition动画完成处理? [英] iOS GoogleMaps SDK - animateToCameraPosition animation finished handler?
问题描述
目前我使用的GoogleMaps SDK适用于iOS进行各种操作。
打电话时
[self.googleMapsView animateToCameraPosition:[GMSCameraPosition
cameraWithLatitude:LATITUDE
经度:经度
变焦:变焦]];
有没有完成处理程序来确定羯羊动画完成与否?
当然,我得到有关cameraPosition的GMSMapViewDelegate更新,但我应该怎么检查,如果动画完成?
- (空)的MapView:(GMSMapView中*)的MapView
didChangeCameraPosition:(GMSCameraPosition *)的位置;
有关这篇文章的未来的读者参考,谷歌地图SDK iOS版2013年7月发布的1.4.0版本增加了新的委托方法的图形页面:idleAtCameraPosition:将在任何相机移动年底被解雇 - 无论是想在这个问题或用户程序化的动画触发动作
Currently I am using the GoogleMaps SDK for iOS for various operations. When calling
[self.googleMapsView animateToCameraPosition:[GMSCameraPosition
cameraWithLatitude:LATITUDE
longitude:LONGITUDE
zoom:ZOOM]];
is there a completion handler to determine wether the animation finished or not?
Of course I get with the GMSMapViewDelegate updates about the cameraPosition but how should I check if the animation finished?
- (void)mapView:(GMSMapView *)mapView
didChangeCameraPosition:(GMSCameraPosition *)position;
For the reference of future readers of this post, Google Maps SDK for iOS Version 1.4.0 released in July 2013 has added a new delegate method mapView:idleAtCameraPosition: which will be fired at the end of any camera movement - be it programatic animation like in this question or user triggered movements.
这篇关于iOS版SDK的GoogleMaps - animateToCameraPosition动画完成处理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!