nunzio giulio caggegi nunzio giulio caggegi - 3 months ago 12
Swift Question

Set background image in storyboard

Can i set the background image from storyboard?
I've set background in code:

override func viewDidLoad() {
super.viewDidLoad()
self.view.backgroundColor = UIColor(patternImage: UIImage(named: "background.png"))
}

Answer

Simple:

Add UIImageView to your Storyboard to the most bottom of your view hierarchy.

.

. enter image description here