Last active
December 18, 2015 01:29
-
-
Save xr1337/5704267 to your computer and use it in GitHub Desktop.
initialize roundtouchbutton
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
- (void)viewDidLoad | |
{ | |
[super viewDidLoad]; | |
// Do any additional setup after loading the view from its nib. | |
RoundTouchButton *rtb = [[RoundTouchButton alloc]initWithFrame:CGRectMake(0, 0, 200, 200)]; | |
rtb.backgroundColor = [UIColor orangeColor]; | |
[rtb addTarget:self action:@selector(rtbTapped) forControlEvents:UIControlEventTouchUpInside]; | |
[self.view addSubview:rtb]; | |
} | |
- (void) rtbTapped{ | |
NSLog(@"%@",@"Tap recieved!"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment