When I press a button, then press another one, the sounds overlap. How can I fix that so the first sound stops when another one is pressed?
- (void)playOnce
Add a check to see if the player is already playing at the beginning of each method:
if (theAudio.playing == YES) { [theAudio stop]; }
AVAudioPlayer Class Reference