Skip to content

Instantly share code, notes, and snippets.

@charlesmchen
Created March 6, 2012 20:48
Show Gist options
  • Save charlesmchen/1988898 to your computer and use it in GitHub Desktop.
Save charlesmchen/1988898 to your computer and use it in GitHub Desktop.
WeViews Tutorial - Getting Started 2
#import "WeMacros.h"
#import "WeViews.h"
WePanel* panel = [[WePanel create]
withOpaqueBackground:UIColorRGB(0xBFBFBF)];
[[[panel addHorizontal:[NSArray arrayWithObjects:
[[[WeButton createWithImage:@"button1.png"]
setDownImage:@"button1_down.png"]
addClickSelector:@selector(someSelector)
target:self],
[WeButton createWithImage:@"button2.png"],
[WeButton createWithImage:@"button3.png"],
nil]]
withMargin:10]
withHAlign:H_ALIGN_RIGHT
vAlign:V_ALIGN_BOTTOM];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment