UICircleAnimationView 通过 CocoaPods 提供。要安装,只需将以下行添加到您的 Podfile 中
pod "UICircleAnimationView"
然后运行
$ pod install
+ (UICircleAnimationView *)getCircleView:(CGRect)rect;
- (void)strokeCircleTo:(NSInteger)currunt total:(NSInteger)total withAnimate:(BOOL)animate;
- (void)setForegroundStrokeColor:(UIColor *)foregroundStrokeColor;
- (void)setBackgroundStrokeColor:(UIColor *)backgroundStrokeColor;
- (void)setHideCirclePoint:(BOOL)hideCirclePoint;
@property (nonatomic, assign) float lineWidth; //default 4
@property (nonatomic, assign) NSTimeInterval duration; //default 1.0f
@property (nonatomic, strong) CALayer *circlePoint;
skswhwo, [email protected]
UICircleAnimationView 在 MIT 许可下可用。有关更多信息,请参阅 LICENSE 文件。