Last active
March 20, 2016 03:34
-
-
Save santoshrajan/e5f798b7a00e1bf19788 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override func viewDidLoad() { | |
super.viewDidLoad() | |
// Do any additional setup after loading the view, typically from a nib. | |
println(view.frame) | |
view.backgroundColor = UIColor.lightGrayColor() | |
let view1 = UIView(frame: CGRectMake(100, 50, 100, 100)) | |
view1.backgroundColor = UIColor.redColor() | |
view.addSubview(view1) | |
let view2 = UIView(frame: CGRectMake(100, 200, 100, 100)) | |
view2.backgroundColor = UIColor.magentaColor() | |
view.addSubview(view2) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment