mmc*_*mmc 15
我假设您正在使用[UIView animateWithDuration: delay: options: animations: completion:];动画方法.
如果是这样,您需要传递UIViewAnimationOptionAllowUserInteraction一个选项,以使动画视图在动画时响应触摸.
(Swift 3) 传递 .allowUserInteraction 选项
UIView.animate(withDuration: 0.75, delay: 0.0, options: [.allowUserInteraction], animations: {
// Desired animation(s)
}, completion: { (finished: Bool) in
// Completion
})
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
5259 次 |
| 最近记录: |