How to stop an UIView animation

后端 未结 1 590
生来不讨喜
生来不讨喜 2021-01-31 17:53

I have several UIImageViews within a UIScrollView that I want to wiggle when the user long-presses one of them. So similar to the behavior you get when

1条回答
  •  借酒劲吻你
    2021-01-31 18:40

     #import 
    

    then

     [myView.layer removeAllAnimations];
    

    or

    [self.view.layer removeAllAnimations]; 
    

    0 讨论(0)
提交回复
热议问题