Having problems allowing interaction in UIView animation

前端 未结 5 429
野趣味
野趣味 2021-01-03 12:23

I have the following block of code to fade out an introView(UIView)

// Hide intro view after 5 seconds
[UIView animateWithDuration: 1.0
          delay: 5.0
         


        
5条回答
  •  一整个雨季
    2021-01-03 13:12

    Pretty sure this is impossible pre-4.0:

    UIView userInteractionEnabled Docs

    During an animation, user interactions are temporarily disabled for all views involved in the animation, regardless of the value in this property. You can disable this behavior by specifying the UIViewAnimationOptionAllowUserInteraction option when configuring the animation.

    There seems little point in targeting 3.2 in an app you haven’t released yet.

提交回复
热议问题