ZJCircleProgressView.h 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. //
  2. // ZJCircleProgressView.h
  3. // ZJCircleProgressView
  4. //
  5. // Created by ZeroJ on 16/10/16.
  6. // Copyright © 2016年 ZeroJ. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @interface ZJCircleProgressView : UIView
  10. /** 头部的image 需要时才设置*/
  11. @property (strong, nonatomic) UIImage *headerImage;
  12. /** 设置或者获取当前进度 */
  13. @property (assign, nonatomic) CGFloat progress;
  14. /** 开始的角度 默认为 -90°*/
  15. @property (assign, nonatomic) CGFloat beginAngle;
  16. /** 进度条的宽度 默认为10 */
  17. @property (assign, nonatomic) CGFloat lineWidth;
  18. /** 进度条的背景颜色 默认为灰色 */
  19. @property (strong, nonatomic) UIColor *trackBackgroundColor;
  20. /** 进度条的颜色 默认为蓝色 */
  21. @property (strong, nonatomic) UIColor *trackColor;
  22. /** 是否是顺时针 默认为YES*/
  23. @property (assign, nonatomic) BOOL clickWise;
  24. /** 进度条两端的样式 默认为kCGLineCapRound*/
  25. @property (assign, nonatomic) CGLineCap lineCap;
  26. /** 显示进度的label, 可设置他的相关属性, hidden, textColor... */
  27. @property (strong, nonatomic, readonly) UILabel *progressLabel;
  28. @end