How to stop an UIView animation

后端 未结 1 589
生来不讨喜
生来不讨喜 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 <QuartzCore/QuartzCore.h>
    

    then

     [myView.layer removeAllAnimations];
    

    or

    [self.view.layer removeAllAnimations]; 
    
    0 讨论(0)
提交回复
热议问题