title: How to stop an UIView animation
body: <p>I have several <code>UIImageViews</code> within a <code>UIScrollView</code> that I want to wiggle when the user long-presses one of them. So similar to the behavior you get when you long-press an icon in your iPad/iPhone menu.</p>
  
  <p>So I have the following:</p>
  
  <pre><code>- (void)startWiggling {
  
      for (UIImageView *touchView in [scrollView subviews]) {
  
          [UIView beginAnimations:@"wiggle" context:nil];
          [UIView setAnimationDuration:0.1];
          [UIView setAnimationRepeatAutoreverses:YES];
          [UIView setAnimationRepeatCount:FLT_MAX];
  
          //wiggle 1 degree both sides
          touchView.transform = CGAffineTransformMakeRotation();
          touchView.transform = CGAffineTransformMakeRotation(-0.0174532925);
  
          [UIView commitAnimations];
  
      }    
  
  }
  
  - (void)stopWiggling {
      NSLog(@"Stop wiggling");    
  }
  </code></pre>
  
  <p>This works fine. The issue is... How can I make it <strong>stop</strong> wiggling after the user has pressed a button? I have a button and connected it etc and it's reaching the <code>stopWiggling</code> method, so that's fine. But so... </p>
  
  <ol>
  <li>How do I remove the UIView animation from these <code>UIImageViews</code>?</li>
  <li>Can I bind this action to the user pressing the <strong>home button</strong> on their device?</li>
  </ol>