UIView动画可以防止触摸事件? [英] UIView animation prevents touch events?
本文介绍了UIView动画可以防止触摸事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在Objective-C上,当动画从UIView开始时,不接受任何触摸交互.我们该如何处理?
On Objective-C when animation starts on the UIView, no touch interaction is accepted. how can we handle this?
推荐答案
在方法animateWithDuration:delay:options:animations:completion:
Use UIViewAnimationOptionAllowUserInteraction as an option parameter in method animateWithDuration:delay:options:animations:completion: