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
Use an AVAudioPlayerDelegate to detect when a song finishes playing (audioPlayerDidFinishPlaying:successfully:). Then start playing the next song.