Created
November 7, 2014 17:52
-
-
Save santoshrajan/27d9456f82a882e0982f 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. | |
view.backgroundColor = UIColor.lightGrayColor() | |
var hLayout = HorizontalLayout(height: 200) | |
hLayout.backgroundColor = UIColor.cyanColor() | |
view.addSubview(hLayout) | |
let view1 = UIView(frame: CGRectMake(50, 50, 100, 100)) | |
view1.backgroundColor = UIColor.redColor() | |
hLayout.addSubview(view1) | |
let view2 = UIView(frame: CGRectMake(50, 50, 100, 100)) | |
view2.backgroundColor = UIColor.magentaColor() | |
hLayout.addSubview(view2) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment