Created
December 7, 2011 20:14
-
-
Save ahmetardal/1444433 to your computer and use it in GitHub Desktop.
SSCheckBoxView
This file contains hidden or 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]; | |
SSCheckBoxView *cbv = [[SSCheckBoxView alloc] initWithFrame:CGRectMake(20, 20, 200, 30) | |
style:kSSCheckBoxViewStyleGlossy | |
checked:YES]; | |
[cbv setText:@"Check updates?"]; | |
[self.view addSubview:cbv]; | |
[cbv release]; | |
} |
This file contains hidden or 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) checkBoxViewChangedState:(SSCheckBoxView *)cbv | |
{ | |
NSLog(@"checkBoxViewChangedState: %d", cbv.checked); | |
} | |
- (void) viewDidLoad | |
{ | |
[super viewDidLoad]; | |
SSCheckBoxView *cbv = [[SSCheckBoxView alloc] initWithFrame:CGRectMake(20, 20, 200, 30) | |
style:kSSCheckBoxViewStyleGlossy | |
checked:YES]; | |
[cbv setText:@"Check updates?"]; | |
[cbv setStateChangedTarget:self | |
selector:@selector(checkBoxViewChangedState:)]; | |
[self.view addSubview:cbv]; | |
[cbv release]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment