Skip to content

Instantly share code, notes, and snippets.

@charlesmchen
Created March 6, 2012 21:00
Show Gist options
  • Save charlesmchen/1988939 to your computer and use it in GitHub Desktop.
Save charlesmchen/1988939 to your computer and use it in GitHub Desktop.
WeViews Tutorial - Layers
#import "WeMacros.h"
#import "WeViews.h"
WePanel* wePanel1 = [[WePanel create]
withOpaqueBackground:UIColorRGB(0xBFBFBF)];
[[wePanel1 addFill1[WeCustomImageView create:upImageName]]
withMargin:5];
[[[wePanel1 addHorizontal:[NSArray arrayWithObjects:
[WeCustomImageView create:upImageName],
[WeButton createWithImage:@"button-left.png"],
[WeButton createWithImage:@"button-center.png"],
[WeButton createWithImage:@"button-right.png"],
nil]]
withVAlign:V_ALIGN_BOTTOM]
withMargin:20];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment