Reputation: 179
i have created a music application in which there are 90 songs.when i click on a particular song it plays. i need that when i click on a particular song it should switch to next song automatically when the current songs completes.Please help me in solving this problem
Upvotes: 0
Views: 562
Reputation: 6095
Use an AVAudioPlayerDelegate to detect when a song finishes playing (audioPlayerDidFinishPlaying:successfully:). Then start playing the next song.
Upvotes: 2