Created
February 27, 2012 05:13
-
-
Save charlesmchen/1921618 to your computer and use it in GitHub Desktop.
WeViews Tutorial - Nested Panels
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* 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