Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

swift view controller background image

override func viewDidLoad() {
    super.viewDidLoad()
    self.view.backgroundColor = UIColor(patternImage: UIImage(named: "background.png"))
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #swift #view #controller #background #image
ADD COMMENT
Topic
Name
3+3 =