How to change button into a picture?

Programmatically:

let image = UIImage(named: "image")
btn.setImage(btnImage , forState: .normal)

Storyboard:
Select your image > Attributes inspector > Image

Leave a Comment