Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Aug 2nd, 2012  |  syntax: None  |  size: 0.64 KB  |  views: 6  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #import "WeMacros.h"
  2. #import "WeViews.h"
  3.  
  4. WePanel* panel = [[WePanel create]
  5.                   withOpaqueBackground:UIColorRGB(0xBFBFBF)];
  6.  
  7. [[[panel addHorizontal:[NSArray arrayWithObjects:
  8.                         [[[WeButton createWithImage:@"button1.png"]
  9.                           setDownImage:@"button1_down.png"]
  10.                          addClickSelector:@selector(someSelector)
  11.                          target:self],
  12.                         [WeButton createWithImage:@"button2.png"],
  13.                         [WeButton createWithImage:@"button3.png"],
  14.                         nil]]
  15.   withMargin:10]
  16.  withHAlign:H_ALIGN_RIGHT
  17.  vAlign:V_ALIGN_BOTTOM];