Skip to content

Instantly share code, notes, and snippets.

@jpoz
Created May 20, 2009 16:50
Show Gist options
  • Save jpoz/114938 to your computer and use it in GitHub Desktop.
Save jpoz/114938 to your computer and use it in GitHub Desktop.
@class UIGlassButton;
- (void)viewDidLoad {
UIGlassButton *myButton = [[UIGlassButton alloc] initWithFrame:CGRectMake(2,2,316,50)];
[myButton addTarget:self action:@selector(doJunk:) forControlEvents:UIControlEventTouchDown];
[myButton setTitle:@"Neat button!" forState:UIControlStateNormal];
[myButton setTintColor:[UIColor colorWithWhite:0.20f alpha:1]];
[self.view addSubview:myButton];
}
-(IBAction)doJunk:(id)sender
{
NSLog(@"Doing junk");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment