Skip to content

Commit d4613e2

Browse files
committed
Added support for target/action messages
1 parent 05ceeee commit d4613e2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Classes/BEMCheckBox.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ NS_ASSUME_NONNULL_BEGIN
3232
/** Tasteful Checkbox for iOS.
3333
*/
3434
#if __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_9_3
35-
IB_DESIGNABLE @interface BEMCheckBox : UIView <CAAnimationDelegate>
35+
IB_DESIGNABLE @interface BEMCheckBox : UIControl <CAAnimationDelegate>
3636
#else
37-
IB_DESIGNABLE @interface BEMCheckBox : UIView
37+
IB_DESIGNABLE @interface BEMCheckBox : UIControl
3838
#endif
3939

4040
/** The different type of animations available.

Classes/BEMCheckBox.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ - (void)handleTapCheckBox:(UITapGestureRecognizer *)recognizer {
171171
if ([self.delegate respondsToSelector:@selector(didTapCheckBox:)]) {
172172
[self.delegate didTapCheckBox:self];
173173
}
174+
[self sendActionsForControlEvents:UIControlEventValueChanged];
174175
}
175176

176177
#pragma mark - Helper methods -

0 commit comments

Comments
 (0)