簡體   English   中英

快速更改CAShapeLayer變換的動畫持續時間

[英]Changing the animation duration of a CAShapeLayer transform in swift

我正在使用CATransform3DMakeScale在iPad應用程序中調整矢量圖形的大小。 默認情況下它是動畫的,我希望能夠更改此動畫的持續時間。 有什么建議嗎?

如果要調整持續時間,請嘗試+ setAnimationDuration:

迅速

class func setAnimationDuration(_ dur: CFTimeInterval)

Objective-C的

+ (void)setAnimationDuration:(CFTimeInterval)duration

設置此事務組中所有動畫使用的動畫持續時間。

https://developer.apple.com/library/prerelease/ios/documentation/GraphicsImaging/Reference/CATransaction_class/index.html#//apple_ref/occ/clm/CATransaction/setAnimationDuration

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM