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"))
}
self.view.backgroundColor = UIColor(patternImage: UIImage(named: "background.png"))
in viewDidLoad
. Screw a storyboard.
Oct 4, 2019 at 15:57
UIImageView
and setting its image is fine with you than yes, you can. Otherwise I don't think you can do this on the defaultUIView
.