Swift - Programmatically change the barButtonSystemItem of an IBOutlet

15 Views Asked by At

In Swift, I have a UIBarButtonItem that have been created in a xib file and calls the play function on click.

@IBOutlet var btnPlay: UIBarButtonItem!

@IBAction func play(sender: UIBarButtonItem) {

}

how to change the barButtonSystemItem in the function play?

0

There are 0 best solutions below