title: Stop sound in iPhone
body: <pre><code>SystemSoundID soundID;
  NSString *path = [[NSBundle mainBundle] pathForResource:@"static" ofType:@"caf"]; 
  AudioServicesCreateSystemSoundID((CFURLRef)[NSURL fileURLWithPath:path], &amp;soundID);
  AudioServicesPlaySystemSound(soundID);
  </code></pre>
  
  <p>I have implemented above code in my application.</p>
  
  <p>It works perfectly, but the problem is I don't know how to stop it.</p>
  
  <p>i.e Sound is of 10 sec.</p>
  
  <p>Before 10 sec. if user taps button, sound should be stopped? How can I do so?</p>