CustomCheckBox.h 761 B

1234567891011121314151617181920212223242526272829303132333435
  1. //
  2. // UICheckBox.h
  3. // JasonDevelop
  4. //
  5. // Created by kcb on 10. 11. 22..
  6. // Copyright (c) jasondevelop. All rights reserved.
  7. //
  8. @import UIKit;
  9. @protocol CustomCheckBoxDelegate <NSObject>
  10. @optional
  11. - (void)didCheckBoxClicked:(id)sender;
  12. @end
  13. @interface CustomCheckBox : UIButton {
  14. }
  15. @property (nonatomic, assign) id<CustomCheckBoxDelegate> delegate;
  16. @property (nonatomic, assign) IBInspectable BOOL checked;
  17. @property (nonatomic, assign) BOOL checkedDisable;
  18. @property (nonatomic, assign) BOOL disable;
  19. @property (weak, nonatomic) id value;
  20. - (instancetype)initWithFrame:(CGRect)frame normalImage:(UIImage *)normalImage highlightImage:(UIImage *)highlightImage;
  21. - (IBAction)checkBoxClicked;
  22. - (BOOL)getCheckStatusFromValue;
  23. - (void)setBgImage;
  24. @end