QCheckBox.h 755 B

1234567891011121314151617181920212223242526272829303132333435
  1. //
  2. // EICheckBox.h
  3. // EInsure
  4. //
  5. // Created by ivan on 13-7-9.
  6. // Copyright (c) 2013年 ivan. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @protocol QCheckBoxDelegate;
  10. @interface QCheckBox : UIButton {
  11. // id<QCheckBoxDelegate> _delegate;
  12. // BOOL _checked;
  13. // id _userInfo;
  14. }
  15. @property(nonatomic, weak) id<QCheckBoxDelegate> delegate;
  16. @property(nonatomic, assign)BOOL checked;
  17. @property(nonatomic, strong)id userInfo;
  18. // 重新赋值选中颜色,特殊处理,如果需要圆角,记得放在frame之前
  19. @property(nonatomic, strong) UIColor *colorSelected;
  20. - (id)initWithDelegate:(id)delegate;
  21. @end
  22. @protocol QCheckBoxDelegate <NSObject>
  23. @optional
  24. - (void)didSelectedCheckBox:(QCheckBox *)checkbox checked:(BOOL)checked;
  25. @end