CTCheckbox is a checkbox UI component library for iOS 5+,
You put UIView on a storyboard and change it's class to CTCheckbox. UIViewController
@property (weak, nonatomic) IBOutlet CTCheckbox *checkbox;
[self.checkbox addTarget:self action:@selector(checkboxDidChange:) forControlEvents:UIControlEventValueChanged];
self.checkbox.textLabel.text = @"Label text";
- (void)checkboxDidChange:(CTCheckbox *)checkbox
{
NSLog(@"%d", checkbox.checked);
}
Or create using initWithFrame:.
CTCheckbox is available under the MIT license. See the LICENSE file for more info.