Skip to content

Instantly share code, notes, and snippets.

@santoshrajan
Last active March 20, 2016 03:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save santoshrajan/e5f798b7a00e1bf19788 to your computer and use it in GitHub Desktop.
Save santoshrajan/e5f798b7a00e1bf19788 to your computer and use it in GitHub Desktop.
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