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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.