MoreBtnModel.h 921 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 = 90001,
  11. ReOrder,
  12. AddMember,
  13. NameChange,
  14. Add,
  15. Del,
  16. Refresh
  17. } MoreBtnType;
  18. @interface MoreBtnModel : NSObject
  19. @property (copy, nonatomic) UIImage *imgNormal;
  20. @property (copy, nonatomic) UIImage *imgHighlight;
  21. @property (copy, nonatomic) UIImage *imgDisabled;
  22. @property (assign, nonatomic) BOOL enable;
  23. @property (assign, nonatomic) BOOL show;
  24. @property (assign, nonatomic) MoreBtnType btnType;
  25. -(id)init;
  26. -(id)initWithTyep:(MoreBtnType)type isEnable:(BOOL)isEnabel;
  27. -(void)setBtnType:(MoreBtnType)type isEnable:(BOOL)isEnabel;
  28. //-(void)setBtnImage:(UIControlState)state imgName:(NSString *)name;
  29. - (UIImage *)getBtnImg:(UIControlState)state;
  30. - (BOOL)isEnable;
  31. - (BOOL)isShow;
  32. @end