CustomLabelButton.h 979 B

123456789101112131415161718192021222324252627282930313233
  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. IB_DESIGNABLE
  12. @interface CustomLabelButton : UIView
  13. @property (weak, nonatomic) IBOutlet CustomButton *btn;
  14. @property (weak, nonatomic) IBOutlet CustomLabel *label;
  15. @property (strong, nonatomic, nullable) IBInspectable UIColor *fillColor;
  16. @property (strong, nonatomic, nullable) UIImage *image;
  17. @property (strong, nonatomic, nullable) NSString *imageURL;
  18. @property (strong, nonatomic, nullable) NSString *title;
  19. @property (assign, nonatomic) BOOL enabled;
  20. - (void)sd_setImageWithURL:(nonnull NSURL *)url forState:(UIControlState)state;
  21. - (nullable NSArray<NSString *> *)actionsForTarget:(nullable id)target forControlEvent:(UIControlEvents)controlEvent;
  22. - (void)addTarget:(nullable id)target action:(nonnull SEL)action forControlEvents:(UIControlEvents)controlEvents;
  23. @end