Created
March 6, 2012 20:48
-
-
Save charlesmchen/1988898 to your computer and use it in GitHub Desktop.
WeViews Tutorial - Getting Started 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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