Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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"))
}
like image 493
nunzio giulio caggegi Avatar asked Sep 04 '16 17:09

nunzio giulio caggegi


1 Answers

Simple:

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

.

. enter image description here

like image 112
pedrouan Avatar answered Oct 17 '22 16:10

pedrouan