Skip to content

Commit

Permalink
Added new protocol and delegate to BEMCheckBox
Browse files Browse the repository at this point in the history
  • Loading branch information
Boris-Em authored and Bobo committed Oct 17, 2015
1 parent 7d08e66 commit 37bca05
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Classes/BEMCheckBox.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@

IB_DESIGNABLE

/** The BEMCheckBoxDelegate protocol. Used to receive life cycle events.
*/
@protocol BEMCheckBoxDelegate <NSObject>

@optional

- (void)didTapCheckBox;

@end

/** Tasteful Checkbox for iOS.
*/
@interface BEMCheckBox : UIView
Expand Down Expand Up @@ -60,6 +70,11 @@ typedef NS_ENUM(NSInteger, BEMAnimationType) {
BEMAnimationTypeFade
};

/** The object that acts as the delegate of the receiving check box.
* @discussion The delegate must adopt the \p BEMCheckBoxDelegate protocol. The delegate is not retained.
*/
@property (nonatomic, weak) IBOutlet id <BEMCheckBoxDelegate> delegate;

/** This property allows you to retrieve and set (without animation) a value determining whether the BEMCheckBox object is On or Off.
* Default to NO.
*/
Expand Down

0 comments on commit 37bca05

Please sign in to comment.