Skip to content

Instantly share code, notes, and snippets.

@charlesmchen
Last active December 22, 2015 17:09
Show Gist options
  • Select an option

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

Select an option

Save charlesmchen/6504519 to your computer and use it in GitHub Desktop.
#import "WeView.h"
UIButton *button = ...;
WeView *panelView = [[WeView alloc] init];
[[[[panelView addSubviewWithCustomLayout:button]
setHAlign:H_ALIGN_CENTER]
setVAlign:V_ALIGN_BOTTOM]
setMargin:20];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment