Skip to content

rizumita/CTCheckbox

Repository files navigation

CTCheckbox

CTCheckbox is a checkbox UI component library for iOS 5+,

Screenshot

Usage

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:.

License

CTCheckbox is available under the MIT license. See the LICENSE file for more info.