Best way for looping and using background sounds in iphone?
问题 Lets say I am dragging my finger on screen and I have 1 second .caf sound file in my bundle. So what is the best way to play my sound file in a loop till i am dragging my fingers. And it should stop whenever I remove touches. I know touches implementation. Just post your views about using sound file. 回答1: See AVAudioPlayer class, it worked pretty well for me for similar behaviour described in your question. 回答2: This is how I did it. At the moment, I don't know of a more efficient method..