MoreBtnModel.h 834 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. //
  2. // MoreBtnModel.h
  3. // OneCable
  4. //
  5. // Created by KaRam Kim on 2017. 3. 15..
  6. // Copyright © 2017년 ntels. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. typedef enum {
  10. MasterTransfer = 9001,
  11. AddMember,
  12. Add,
  13. Del,
  14. Refresh
  15. } MoreBtnType;
  16. @interface MoreBtnModel : NSObject
  17. @property (copy, nonatomic) UIImage *imgNormal;
  18. @property (copy, nonatomic) UIImage *imgHighlight;
  19. @property (copy, nonatomic) UIImage *imgDisabled;
  20. @property (assign, nonatomic) BOOL enable;
  21. @property (assign, nonatomic) MoreBtnType btnType;
  22. -(id)init;
  23. -(id)initWithTyep:(MoreBtnType)type isEnable:(BOOL)isEnabel;
  24. -(void)setBtnType:(MoreBtnType)type isEnable:(BOOL)isEnabel;
  25. //-(void)setBtnImage:(UIControlState)state imgName:(NSString *)name;
  26. - (UIImage *)getBtnImg:(UIControlState)state;
  27. - (BOOL)isEnable;
  28. @end