TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Apr 2015 |
Maintained by Mike Pesate.
Custom Check Boxes class.
Extends UIControl class.
This check box does not come with an associated label, this is because sometime you dont want a label next to it, meybe you need an image. So to compensate for this, theres a way to link an UIView (or son) object to it and extend the functionality.
So far there are only two types of check boxes:
MPCheckBox.h
class.NOTE: Each Check Box has an identifier, that property is assignable from the IB.
#import "MPCheckBox.h" //Import header
@class SomeClass() <MPCheckBoxDelegate> // Implement Delegate (OPTIONAL)
MPCheckBox *checkBox = [[MPCheckBox alloc] initWithFrame:someFrame];
checkBox.identifier = @"someIdent";
checkBox setDelegate:self];
[checkBox setCompanionView:someView]; //Can be anything that inherits from UIView
//For circular
[checkBox setCircular:YES]; //Default is NO
//Set State
[checkBox setState:kMPCheckBoxStateChecked animated:NO]; // Default is Unchecked
//Cutomization
[checkBox setBackgroundColor:someColor]; //Default Clear
[checkBox setBorderColor:otherColor]; //Default Black
[checkBox setCheckColor:oneMoreColor]; //Default Black
//The state can be toggled manually from anywhere just call
[checkBox toggleState:YES];
[someOtherView addSubView:checkBox];
NSArray* checkBoxes = @[leftmostCheckBox, leftCheckBox, rightCheckBox, rightmostCheckBox];
MPCheckBoxGroup* checkBoxGroup = [[MPCheckBoxGroup alloc] init];
[checkBoxGroup setCheckBoxes:checkBoxes];
[checkBoxGroup setDelegate:self];
[checkBoxGroup setIdentifier:@"group"];
MIT but Read de LICENSE file for more info.
<<<<<<< HEAD
v0.1.3 ~ Method names and properties may change in the future. The will be specified but concider yourself warned.
v0.1.3