StepImageView.h 857 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. //
  2. // StepImageView.h
  3. // jiaPei
  4. //
  5. // Created by EchoShacolee on 2018/4/25.
  6. // Copyright © 2018年 JCZ. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. typedef NS_ENUM(NSInteger, ClickStatus) {
  10. //未激活
  11. ClickStatuseNormal=0,
  12. //激活中
  13. ClickStatusMid,
  14. //已激活
  15. ClickStatusHighlighted,
  16. //已经激活过
  17. ClickStatusHaveDone
  18. };
  19. @interface StepImageView : UIView
  20. -(instancetype)initWithFrame:(CGRect)frame image:(NSString *)img title:(NSString *)title;
  21. @property(nonatomic,copy)NSString *title;
  22. /**
  23. 状态图片数组
  24. */
  25. @property(nonatomic,retain)NSArray *statusImages;
  26. /**
  27. 1.不允许选中,灰色;
  28. 2.不允许选中 微亮;执行任务状态
  29. 3.允许选中 高亮;
  30. */
  31. @property(nonatomic,assign)ClickStatus status;
  32. /**
  33. 点击回调
  34. */
  35. @property(nonatomic,copy)BlockTypeVo clickBlock;
  36. @end