JCCheckBox
Example
// DEFAULT SIZE INIT
JCCheckBox *ovalCheckBox = [JCCheckBox checkBox]; // default size 24 by 24
// SET STYLE
self.ovalCheckBox.checkBoxStyle = JCCheckBoxStyleOval; // square is the default
// CHANGE COLOR
self.ovalCheckBox.innerColor = [UIColor greenColor];
self.ovalCheckBox.outerColor = [UIColor greenColor];
// SET COMPLETION
self.ovalCheckBox.checkedCompletion = ^{
NSLog(@"Checked");
};
self.ovalCheckBox.uncheckedCompletion = ^{
NSLog(@"Unchecked");
};
[view addSubview:ovalCheckBox];
Requirements
Installation
JCCheckBox is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'JCCheckBox'
Author
JasonHan1990, [email protected]
License
JCCheckBox is available under the MIT license. See the LICENSE file for more info.