In my app I have a few buttons that play songs when pressed. When a song is done, I want to change the image on the play/stop button to the play image. I know I could set a timer to check to make sure the right image is displayed, but I feel like this would be a waste of system resources. Is there a way to know when a song is done playing or something else? (Also, I’m using the AVAudioPlayer)
-Thanks
In my app I have a few buttons that play songs when pressed. When
Share
Set up a delegate, and respond to the
audioPlayerDidFinishPlayingcallback.