要运行示例项目,请克隆repo,然后首先从Example目录运行pod install
GRProgressView可通过CocoaPods获取。要安装它,只需在Podfile中添加以下行
pod "GRProgressView"
#import <UIKit/UIKit.h>
@interface GRProgressView : UIImageView
@property (nonatomic, assign) float progress; // 0.0 .. 1.0, default is 0.0. values outside are pinned.
@property (nonatomic, strong, nullable) UIColor* progressTintColor;
@property (nonatomic, strong, nullable) UIColor* trackTintColor;
@property (nonatomic, strong, nullable) UIImage* progressImage;
@property (nonatomic, strong, nullable) UIImage* trackImage;
- (void)setProgress:(float)progress animateWithDuration:(double)duration delay:(double)delay
- (void)setProgress:(float)progress animateWithDuration:(double)duration;
- (void)setProgress:(float)progress animated:(BOOL)animated;
@end
Assuner-Lee, [email protected]
GRProgressView是基于MIT许可的。更多信息请参阅LICENSE文件。