Skip to content

Instantly share code, notes, and snippets.

@charlesmchen
Last active December 27, 2015 08:09
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 charlesmchen/7294435 to your computer and use it in GitHub Desktop.
Save charlesmchen/7294435 to your computer and use it in GitHub Desktop.
WeView *headerView = [[WeView alloc] init];
headerView.backgroundColor = [UIColor colorWithWhite:0.5f alpha:0.5f];
headerView.opaque = NO;
[[headerView addSubviewWithCustomLayout:[DemoFactory createLabel:@"Ferdinand Hodler"
fontSize:20.f]]
setMargin:5];
[[[[headerView addSubviewWithCustomLayout:[DemoFactory buttonWithImageName:@"Glyphish_Icons/14-tag.png"]]
setHMargin:10]
setVMargin:5]
setHAlign:H_ALIGN_RIGHT];
[[rootView addSubviewWithCustomLayout:[headerView setHStretches]]
setVAlign:V_ALIGN_TOP];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment