WMProgressView.h 850 B

1234567891011121314151617181920212223242526272829
  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. @interface WMProgressView : UIView
  10. @property (nonatomic, strong) NSArray *itemFrames;
  11. @property (nonatomic, assign) CGColorRef color;
  12. @property (nonatomic, assign) CGFloat progress;
  13. /** 进度条的速度因数,默认为 15,越小越快, 大于 0 */
  14. @property (nonatomic, assign) CGFloat speedFactor;
  15. @property (nonatomic, assign) CGFloat cornerRadius;
  16. // 调皮属性,用于实现新腾讯视频效果
  17. @property (nonatomic, assign) BOOL naughty;
  18. @property (nonatomic, assign) BOOL isTriangle;
  19. @property (nonatomic, assign) BOOL hollow;
  20. @property (nonatomic, assign) BOOL hasBorder;
  21. - (void)setProgressWithOutAnimate:(CGFloat)progress;
  22. - (void)moveToPostion:(NSInteger)pos;
  23. @end