We can use AVAudioPlayer to play music. Now i want to add an UISlider as the music progress bar and user can fast skip the music.
Now i have a play button in the view and when user click it, i will play the music file as well as the following method.
- playButtonClicked – Run when the play button is clicked
- updateSlider – Run in 1 second interval to update the UISlider
- sliderChange – Fast skip the music when user scroll the UISlider