我有一个UIVIEwPropertyAnimator管理模糊等等,我想将它用于其fractionComplete属性.问题是,如果我将fractionComplete设置为1.0,它将完成并删除所有动画,我想保留它们.
基本上,我不希望动画师完成,因为它清除了动画块.
考虑了变通方法
>完成后重新添加动画
> Clamp fractionComplete到0.001 … 0.999
var pausesOnCompletion: Bool { get set }
在UIVIEwPropertyAnimator上
When the value of this property is true,the animator remains in the
active state when the animation finishes,and it does not execute its
completion handler. KeePing the animator in the active state allows
you to reverse the animation even after it has finished. When the
value of this property is false,the animator automatically
Transitions to the inactive state when the animation finishes,
thereby concluding the animation. The default value of this property
is false.
来源:https://developer.apple.com/documentation/uikit/uiviewpropertyanimator/2909004-pausesoncompletion
总结以上是内存溢出为你收集整理的ios – 让UIViewPropertyAnimator永远不会完成全部内容,希望文章能够帮你解决ios – 让UIViewPropertyAnimator永远不会完成所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)