30 lines
896 B
Objective-C
Executable File
30 lines
896 B
Objective-C
Executable File
//
|
||
// WMProgressView.h
|
||
// WMPageController
|
||
//
|
||
// Created by Mark on 15/6/20.
|
||
// Copyright (c) 2015年 yq. All rights reserved.
|
||
//
|
||
|
||
#import <UIKit/UIKit.h>
|
||
|
||
NS_ASSUME_NONNULL_BEGIN
|
||
@interface WMProgressView : UIView
|
||
@property (nonatomic, strong) NSArray *itemFrames;
|
||
@property (nonatomic, assign) CGColorRef color;
|
||
@property (nonatomic, assign) CGFloat progress;
|
||
/** 进度条的速度因数,默认为 15,越小越快, 大于 0 */
|
||
@property (nonatomic, assign) CGFloat speedFactor;
|
||
@property (nonatomic, assign) CGFloat cornerRadius;
|
||
/// 调皮属性,用于实现新腾讯视频效果
|
||
@property (nonatomic, assign) BOOL naughty;
|
||
@property (nonatomic, assign) BOOL isTriangle;
|
||
@property (nonatomic, assign) BOOL hollow;
|
||
@property (nonatomic, assign) BOOL hasBorder;
|
||
|
||
- (void)setProgressWithOutAnimate:(CGFloat)progress;
|
||
- (void)moveToPostion:(NSInteger)pos;
|
||
|
||
@end
|
||
NS_ASSUME_NONNULL_END
|