【问题标题】:UIView animation prevents touch events? [duplicate]UIView 动画防止触摸事件? [复制]
【发布时间】:2013-07-22 13:05:45
【问题描述】:

在 Objective-C 上,当 UIView 上的动画开始时,不接受触摸交互。我们该如何处理?

【问题讨论】:

    标签: ios objective-c uianimation touch-event


    【解决方案1】:

    在方法 animateWithDuration:delay:options:animations:completion: 中使用 UIViewAnimationOptionAllowUserInteraction 作为选项参数:

    UIViewAnimationOptions

    【讨论】:

      猜你喜欢
      • 2011-02-03
      • 1970-01-01
      • 1970-01-01
      • 2011-05-03
      • 1970-01-01
      • 2016-07-17
      • 1970-01-01
      • 1970-01-01
      • 2015-08-10
      相关资源
      最近更新 更多