Skip to content

Instantly share code, notes, and snippets.

@charlesmchen
Created February 27, 2012 04:43
Show Gist options
  • Save charlesmchen/1921458 to your computer and use it in GitHub Desktop.
Save charlesmchen/1921458 to your computer and use it in GitHub Desktop.
WeViews Tutorial - Getting Started
#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]];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment