Answers for "how to change viewcontroller background image through button action in swift"

0

swift view controller background image

override func viewDidLoad() {
    super.viewDidLoad()
    self.view.backgroundColor = UIColor(patternImage: UIImage(named: "background.png"))
}
Posted by: Guest on June-17-2021
0

swift view controller background image

[self.view setBackgroundColor:[UIColor colorWithPatternImage:[UIImage imageNamed:@"background.png"]]];
Posted by: Guest on June-17-2021

Code answers related to "how to change viewcontroller background image through button action in swift"

Code answers related to "Swift"

Browse Popular Code Answers by Language