2011-08-24 123 views

回答

0

您可以使用AVAudioPlayerDelegate和實施:

- (void)audioPlayerDidFinishPlaying:(AVAudioPlayer *)player successfully:(BOOL)flag 

你可以做這樣的事情:

- (void)audioPlayerDidFinishPlaying:(AVAudioPlayer *)player successfully:(BOOL)flag{ 
    [player play]; 
} 

也可以允許根據某些條件後停止。

2

嘗試:

[yourSound numberOfLoops: -1]; 

-1指示聲音被永遠循環。