title: Check if an animation image is in an image view at a given time
body: <p>I have an image view that has two animation images, occuring in 1-second intervals. I want to run some methods when my image view is displaying one of those two images </p>
  
  <p>I already tried doing:</p>
  
  <pre><code>if(self.imageViewThatPerformsAnimation.image == [UIImage imageNamed: @"someImage"])
      [self doSomeMethod];
  </code></pre>
  
  <p>but when I tried this and ran it, <code>[self doSomeMethod];</code> always ran, and not just when the image view was displaying that one image. </p>
  
  <p>I'm thinking about having a timer that changes a boolean value every one second then saying</p>
  
  <pre><code>if (booleanValue==YES)
      [self doSomeMethod]
  </code></pre>
  
  <p>It's just that I feel there may be a better way.</p>