title: iOS: Limit CGRectIntersectsRect to one intersection?
body: <p>I am using the basic CGRectIntersectsRect to detect a collision between sprites as follows:</p>
  
  <pre><code>if (CGRectIntersectsRect(staff.frame, imgView.frame)) {
      [self playSound];
  }
  </code></pre>
  
  <p>However, since <code>staff.frame</code> is moving consistently over the frame of <code>imgView.frame</code>, the method <code>playSound</code> is fired multiple times - as many times as it takes for the sprites to override each other - causing an unwanted and extreme amount of playback from the <code>playSound</code> method.</p>
  
  <p>That being said, is it possible to limit the <code>CGRectIntersectsRect</code> method to only allow one collision before breaking the detection?</p>