UIView执行animateWithDuration时不响应事
2017-04-26 本文已影响356人
字节码
执行animateWithDuration的动画block时默认禁用用户交互。可以传递一个options为UIViewAnimationOptionAllowUserInteraction,允许视图在动画中响应事件
[UIView animateWithDuration:2.0 delay:0.0 options:UIViewAnimationOptionCurveLinear | UIViewAnimationOptionAllowUserInteraction animations:^{
sv.alpha = 0.1;
} completion:nil];