例:
[UIView animateWithDuration:3
delay:0.0
options:UIViewAnimationOptionCurveLinear|UIViewAnimationOptionAllowUserInteraction
animations:^{
唉 这问题又折腾了好久
转载自:http://stackoverflow.com/questions/5921173/uiview-animations-canceling-any-touch-input
Turns out UIView's block animation by default blocks user interaction, and to get around it you need to pass
UIViewAnimationOptionAllowUserInteraction as one of the options. Hopefully someone else will have some use of this information as well.
本文介绍了如何在使用UIView动画时保持用户交互功能。默认情况下,UIView的块动画会阻止用户的输入,若要在动画过程中允许用户交互,则需要传递UIViewAnimationOptionAllowUserInteraction选项。
1116

被折叠的 条评论
为什么被折叠?



