You should read AVAudioPlayer's documentation. You'll find that the player has two properties that pertain to this, currentTime
and duration
audioPlayer.currentTime
audioPlayer.duration
Then, assuming that you're leaving your sliders min and max values at their default settings (0 - 1), you can determine progress by simply dividing currentTime
by duration
.