UIView animation prevents touch events? [duplicate]

自闭症网瘾萝莉.ら 提交于 2019-11-28 07:42:59

问题


This question already has an answer here:

  • UIView animations canceling any touch input? 2 answers

On Objective-C when animation starts on the UIView, no touch interaction is accepted. how can we handle this?


回答1:


Use UIViewAnimationOptionAllowUserInteraction as an option parameter in method animateWithDuration:delay:options:animations:completion:

UIViewAnimationOptions



来源:https://stackoverflow.com/questions/17810576/uiview-animation-prevents-touch-events

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!