I know the code to change the backgroundColor in iOS is something to this extent:
self.view.backgroundColor = UIColor.yellowColor()
But for som
You put your code in the wrong place.
class ViewController: UIViewController {
// This space is only for declarations.
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
// Put this setup code in the viewDidLoad method.
self.view.backgroundColor = UIColor.yellowColor()
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
}