How to recognize tap gesture while a view is animating

后端 未结 3 1040
慢半拍i
慢半拍i 2021-02-08 20:09

Just wondering is there way to have a view recognize tap gestures while it is being animated? I am working on a view that has a cashapelayer line tethered to it. When the user p

3条回答
  •  南旧
    南旧 (楼主)
    2021-02-08 20:46

    I'm assuming that you are using the [UIView animateWithDuration: delay: options: animations: completion:]; method of animating.

    If so, you need to pass UIViewAnimationOptionAllowUserInteraction as an option to get the animated view to respond to touches while it is animating.

提交回复
热议问题