Skip to content

Instantly share code, notes, and snippets.

@charlesmchen
Last active December 27, 2015 08:19
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/7295582 to your computer and use it in GitHub Desktop.
Save charlesmchen/7295582 to your computer and use it in GitHub Desktop.
WeView *pillboxButtonsView = [[WeView alloc] init];
pillboxButtonsView.layer.cornerRadius = 5.f;
pillboxButtonsView.clipsToBounds = YES;
[pillboxButtonsView addSubviewsWithHorizontalLayout:@[
[self createFlatUIPillboxButton:@"Prev"],
[self createFlatUIPillboxSpacer],
[self createFlatUIPillboxButton:@"Details"],
[self createFlatUIPillboxSpacer],
[self createFlatUIPillboxButton:@"Next"],
]];
[[[demoModel.rootView addSubviewWithCustomLayout:pillboxButtonsView]
setBottomMargin:25]
setVAlign:V_ALIGN_BOTTOM];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment