CustomLabelButton.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // CustomLabelButton.h
  3. // OneCable
  4. //
  5. // Created by Jason Lee on 1/7/16.
  6. // Copyright © 2016 ntels. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @class CustomButton;
  10. @class CustomLabel;
  11. @class CustomImageView;
  12. IB_DESIGNABLE
  13. @interface CustomLabelButton : UIView
  14. @property (weak, nonatomic) IBOutlet CustomButton *btn;
  15. @property (weak, nonatomic) IBOutlet CustomLabel *label;
  16. @property (weak, nonatomic) IBOutlet CustomImageView *imgvMode;
  17. @property (weak, nonatomic) IBOutlet CustomImageView *imgvCheck;
  18. @property (weak, nonatomic) IBOutlet CustomImageView *imgvBtnBg;
  19. @property (strong, nonatomic, nullable) IBInspectable UIColor *fillColor;
  20. @property (strong, nonatomic, nullable) UIImage *image;
  21. @property (strong, nonatomic, nullable) NSString *imageURL;
  22. @property (strong, nonatomic, nullable) NSString *title;
  23. @property (assign, nonatomic) BOOL enabled;
  24. - (void)sd_setImageWithURL:(nonnull NSURL *)url forState:(UIControlState)state;
  25. - (nullable NSArray<NSString *> *)actionsForTarget:(nullable id)target forControlEvent:(UIControlEvents)controlEvent;
  26. - (void)addTarget:(nullable id)target action:(nonnull SEL)action forControlEvents:(UIControlEvents)controlEvents;
  27. @end