Setup BEMCheckBox in your project
masterBEMCheckBox is modeled after UISwitch. To use it, first import the header in your view controller:
#import "BEMCheckBox.h"Programmatic Initialization
Initialize the checkbox in your implementation (e.g., viewDidLoad):
BEMCheckBox *myCheckBox = [[BEMCheckBox alloc] initWithFrame:CGRectMake(0, 0, 50, 50)];
[self.view addSubview:myCheckBox];Interface Builder Initialization
- Drag a
UIViewinto yourUIViewController. - Change the class of the
UIViewtoBEMCheckBox. - Use the Attributes Inspector to configure customizable properties.
#import "BEMCheckBox.h"
BEMCheckBox *myCheckBox = [[BEMCheckBox alloc] initWithFrame:CGRectMake(0, 0, 50, 50)];
[self.view addSubview:myCheckBox];