Created
May 20, 2009 16:50
-
-
Save jpoz/114938 to your computer and use it in GitHub Desktop.
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
@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