[英]Swift 3: CAShapeLayer mask not animating for pie chart animation
[英]Changing the animation duration of a CAShapeLayer transform in swift
我正在使用CATransform3DMakeScale
在iPad應用程序中調整矢量圖形的大小。 默認情況下它是動畫的,我希望能夠更改此動畫的持續時間。 有什么建議嗎?
如果要調整持續時間,請嘗試+ setAnimationDuration:
迅速
class func setAnimationDuration(_ dur: CFTimeInterval)
Objective-C的
+ (void)setAnimationDuration:(CFTimeInterval)duration
設置此事務組中所有動畫使用的動畫持續時間。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.