title: Play sound and animation
body: <p>I have an animation that when a button is pressed it plays.</p>
  
  <p>I need to play a sound at the same time.</p>
  
  <p>If the button was pressed twice in quick succession, the sound would play then start from the beginning on the second press, but the animation would only cycle once as the sound is shorter than the animation length.</p>
  
  <p>Does anyone have a solution for this? </p>
  
  <p>Perhaps a way to make the button for sound only work again once the animation has finished playing? </p>
  
  <pre><code>//Panel 1 Sound Button Action.
  - (IBAction)playSound:(id)sender {
      AudioServicesPlaySystemSound(SoundID);
  
  
  //Panel 1 Sound
      NSURL *buttonURL = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"panel01" ofType:@"wav"]];
      AudioServicesCreateSystemSoundID((__bridge CFURLRef)buttonURL, &amp;SoundID);
  </code></pre>