Skip to content

Instantly share code, notes, and snippets.

@ahmetardal
Created December 7, 2011 20:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahmetardal/1444433 to your computer and use it in GitHub Desktop.
Save ahmetardal/1444433 to your computer and use it in GitHub Desktop.
SSCheckBoxView
- (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];
}
- (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