I've got an audio player that plays audio retrieved from Core Date. Play & pause work fine. I'm trying to implement a 'Jump Forward 30 Seconds' button and seeking any pointers as to how I would go about that.
Code for my 'Play/pause' button
@IBAction func playPressed(sender: AnyObject) {
let play = UIImage(named: "play")
let pause = UIImage(named: "pause")
if audioPlayer.playing {
pauseAudioPlayer()
audioPlayer.playing ? "\(playButton.setImage( pause, forState: UIControlState.Normal))" : "\(playButton.setImage(play , forState: UIControlState.Normal))"
}else{
playAudio()
audioPlayer.playing ? "\(playButton.setImage( pause, forState: UIControlState.Normal))" : "\(playButton.setImage(play , forState: UIControlState.Normal))"
}
}