Player for iPhone Programming?
I am using AVAudioPlayer
in my program, but having touble in something
I have 10 sounds, and as I click one to play or th开发者_运维技巧en others don't stop, I tried to solve by
[myPlayer stop];
myPlayer = nil;
it works, but takes time, so what should I do to stop when it click 2nd row on tableview for playing another sound?
If any query regarding question, you may ask in comments,
I think You hae added some observer before calling, [myPlayer play];... So you have to remove those observer
精彩评论