Set background image in storyboard

nunzio giulio caggegi picture nunzio giulio caggegi · Sep 4, 2016 · Viewed 39k times · Source

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

pedrouan picture pedrouan · Sep 4, 2016

Simple:

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

.

. enter image description here