title: UIButton click sound on touch - where to put it?
body: <p>There's a special situation in my app where I need a UIButton touch to be accompanied by a click sound, similar to the one used on the system keyboard.</p>
  
  <p>I'm doing this now on the toucesBegan: call - the earliest one I could think of - but still, in quite a few cases (especially on slower devices), the sound is delayed and the whole point is missed - the user might have touched another button before the first sound is heard.</p>
  
  <p>This does not happen on the system keyboard, nor does it happen in some other apps that I'm using, so they must be doing it the right way :-)</p>
  
  <p>Where should I put the click code to make it sound as soon as the user touches the screen? I'd rather do it in a place where I don't have to check myself whether the touch is within the bounds of the button, but if this is the only choice then I'm willing to do it. </p>
  
  <p>Does the method used for creating the sound matter? I'm now using AudioServicesPlaySystemSound which is the easiest way.</p>
  
  <p>Thanks.</p>