Aucune description

WMProgressView.h 896B

123456789101112131415161718192021222324252627282930
  1. //
  2. // WMProgressView.h
  3. // WMPageController
  4. //
  5. // Created by Mark on 15/6/20.
  6. // Copyright (c) 2015年 yq. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface WMProgressView : UIView
  11. @property (nonatomic, strong) NSArray *itemFrames;
  12. @property (nonatomic, assign) CGColorRef color;
  13. @property (nonatomic, assign) CGFloat progress;
  14. /** 进度条的速度因数,默认为 15,越小越快, 大于 0 */
  15. @property (nonatomic, assign) CGFloat speedFactor;
  16. @property (nonatomic, assign) CGFloat cornerRadius;
  17. /// 调皮属性,用于实现新腾讯视频效果
  18. @property (nonatomic, assign) BOOL naughty;
  19. @property (nonatomic, assign) BOOL isTriangle;
  20. @property (nonatomic, assign) BOOL hollow;
  21. @property (nonatomic, assign) BOOL hasBorder;
  22. - (void)setProgressWithOutAnimate:(CGFloat)progress;
  23. - (void)moveToPostion:(NSInteger)pos;
  24. @end
  25. NS_ASSUME_NONNULL_END