title: How to animate an array of images in iOS
body: <p>I have an array of images that I want a UIImageView to animate</p>
  
  <p>I know how to do this with this method:</p>
  
  <pre><code>[myImageView setAnimationImages:myImageArray];
  [myImageView setAnimationDuration:.7];
  [myImageView setAnimationRepeatCount:1];
  [myImageView startAnimating];
  </code></pre>
  
  <p>However I want to use a different method. I want to do this</p>
  
  <pre><code>[UIView animateWithDuration:.7 delay:0 options:(UIViewAnimationOptionAllowUserInteraction)
                   animations:^{
                       // animate image array
                   }
                   completion:^(BOOL finished){
                       //  [self animationEnded];
                   }
   ];
  </code></pre>
  
  <p>but I am not sure what to put where I have // animate image array</p>