mardi 4 août 2015

Progress View and sound with Swift [on hold]

I have a mp3 file in the Supporting Files folder. I can make it play and stop. I put a Progress View from the Object Library to the Main.storyboard, but how to make the Progress View show the progress of the sound when the sound plays?

I would much appreciate if someone could introduce me to the more basics. (I am very new, any simple explanation will help)

var sound1 = AVAudioPlayer()
@IBOutlet var progress: UIView!

@IBAction func play(sender: AnyObject) {
    sound1.play()

}



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire