我正在执行的过渡在后台任务执行时无限重复。任务完成后,我想结束转换。我知道您可以制作动画View.Layer.RemoveAllAnimations();
,转换是否等效?
我正在使用的代码:
Transition(view, 1, UIViewAnimationOptions.Autoreverse | UIViewAnimationOptions.Repeat | UIViewAnimationOptions.TransitionCrossDissolve, animation: () => {
// Animation to occur during cross dissolve
}, completion: null);