Controlling Animation Duration in Google Maps for iOS

前端 未结 4 1668
广开言路
广开言路 2021-02-02 10:16

The documentation for Google Maps for iOS states that:

Call one of several methods that allow you to animate the camera moving to a new location. You can

4条回答
  •  执笔经年
    2021-02-02 10:39

    Swift 2.0

    CATransaction.begin()
    CATransaction.setValue(NSNumber(float: 1.0), forKey: kCATransactionAnimationDuration)
    // change the camera, set the zoom, whatever.  Just make sure to call the animate* method.
    CATransaction.commit()
    

提交回复
热议问题