nunzio giulio caggegi nunzio giulio caggegi - 1 year ago 131
Swift Question

Set background image in storyboard

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

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

Answer Source


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


. enter image description here

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download