开发者

Player for iPhone Programming?

开发者 https://www.devze.com 2023-03-21 19:58 出处:网络
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

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

0

精彩评论

暂无评论...
验证码 换一张
取 消