CocoaPods trunk is moving to be read-only. Read more on the blog, there are 17 months to go.

MECheckbox 0.1.6

MECheckbox 0.1.6

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Oct 2015

Maintained by Egor Merkushev.



Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

#import <MECheckbox/MECheckbox.h>

...
// by code
UIImage *checked = [UIImage imageNamed:@"checked"];
UIImage *unchecked = [UIImage imageNamed:@"unchecked"];
CGRect frame = CGRectMake(0, 0, checked.size.width, checked.size.height);
MECheckbox *checkbox = [[MECheckbox alloc] initWithFrame:frame];
checkbox.checkedImage = checked;
checkbox.uncheckedImage = unchecked;
[self.view addSubview:checkbox];

Or just use Interface Builder - drag UIView, set class MECheckbox to it, than use designable properties 'checked' & 'unchecked' — IB draws checkbox live on any view in storyboard or in xib.

You can use any UIImage what you want, but remember - checkbox doesn't resize yourself for new images. You must set frame for checkbox manually or by Auto Layout!

Requirements

UIKit

Installation

MECheckbox is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "MECheckbox"

Author

SoundBlaster, [email protected]

License

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