Skip to content

Instantly share code, notes, and snippets.

@charlesmchen
Created February 27, 2012 05:13
Show Gist options
  • Save charlesmchen/1921618 to your computer and use it in GitHub Desktop.
Save charlesmchen/1921618 to your computer and use it in GitHub Desktop.
WeViews Tutorial - Nested Panels
#import "WeMacros.h"
#import "WeViews.h"
WePanel* footerPanel = [WePanel create];
[footerPanel addHorizontal:[NSArray arrayWithObjects:
[WeButton createWithImage:@"button1.png"],
[WeButton createWithImage:@"button2.png"],
[WeButton createWithImage:@"button3.png"],
nil]];
WePanel* wePanel1 = [[WePanel create]
withOpaqueBackground:UIColorRGB(0xBFBFBF)];
[[[wePanel1 addVerticalFill:[NSArray arrayWithObjects:
[[WeImageView create:@"large_icon.png"]
withStretchWeight:1.0f],
footerPanel,
nil]]
withSpacing:5]
withMargin:5];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment