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

iphone navigation & saving data to plist

By: a guest on Feb 22nd, 2012  |  syntax: None  |  size: 0.45 KB  |  views: 15  |  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. ////button code
  2.  
  3. button = [[UIButton buttonWithType:UIButtonTypeRoundedRect] retain];
  4.    button.frame = CGRectMake(10, 150, 300, 50);
  5.    [button setTitle:@"Login" forState:UIControlStateNormal];
  6.    button.backgroundColor = [UIColor clearColor];
  7.    [button addTarget:self action:@selector(myaction:)  forControlEvents:UIControlEventTouchUpInside];
  8.           button.adjustsImageWhenHighlighted = YES;
  9.    [mainView addSubview:button];
  10.    [button release];