CYCircularSlider.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. //
  2. // CYCircularSlider.h
  3. // CYCircularSlider
  4. //
  5. // Created by user on 2018/3/23.
  6. // Copyright © 2018年 com. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. // 半圆滑动条
  10. @protocol senderValueChangeDelegate <NSObject>
  11. /// 代理回调
  12. -(void)senderVlueWithNum:(int)num;
  13. // 正在修改 更新UI
  14. -(void)senderVlueChangingWithNum:(int)num;
  15. @end
  16. @interface CYCircularSlider : UIControl
  17. /// 显示的进度条颜色
  18. @property (nonatomic, strong) UIColor* filledColor;
  19. /// 背景线条颜色
  20. @property (nonatomic, strong) UIColor* unfilledColor;
  21. /**
  22. 最小值
  23. */
  24. @property (nonatomic) float minimumValue;
  25. //
  26. /**
  27. 最大值
  28. */
  29. @property (nonatomic) float maximumValue;
  30. // 当前值 真实数值,区分与slider的档位
  31. @property (nonatomic) int value;
  32. /**
  33. 圈边宽度
  34. */
  35. @property (nonatomic) int lineWidth;
  36. /// 圆点按钮颜色
  37. @property (nonatomic, strong) UIColor* handleColor;
  38. @property (nonatomic, strong) UIColor* handleColor2;
  39. @property (nonatomic, strong) UIColor* handleColor3;
  40. @property (nonatomic,weak) id<senderValueChangeDelegate> delegate;
  41. -(void)setAddAngel;
  42. -(void)setMovAngel;
  43. @end