Skip to content

Instantly share code, notes, and snippets.

@charlesmchen
Created September 15, 2013 20:04
Show Gist options
  • Select an option

  • Save charlesmchen/6573957 to your computer and use it in GitHub Desktop.

Select an option

Save charlesmchen/6573957 to your computer and use it in GitHub Desktop.
WeView *container = [[WeView alloc] init];
[[[container addSubviewsWithHorizontalLayout:@[
[label setHStretches], // Indicates that this view should be stretched horizontally.
[imageView setHStretchWeight:2.f], // Indicates that this view be stretched horizontally with a specific weight.
button,]]
setMargin:5]
setSpacing:5];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment