CocoaPods trunk is moving to be read-only. Read more on the blog, there are 16 months to go.

JKProgress 0.0.2

JKProgress 0.0.2

Maintained by joker_king.



  • By
  • joker

JKProgress

一个类似于Safari浏览器的进度条。

安装

使用CocoaPods安装

将其添加到您的Podfile文件中并运行pod install以安装。

pod 'JKProgress'

Exaple

下载并运行JKMicroWebView 项目,以查看示例。

用法

  1. 导入头文件
#import <JKProgress/JKMicroProgress.h>

API介绍

/**
设置进度,0.0到1.0之间,没有动画
*/
@property (nonatomic, assign) CGFloat progress;
/**
进度条
*/
@property (nonatomic, strong) UIView *progressBarView;
/**
动画执行时间
*/
@property (nonatomic, assign) NSTimeInterval barAnimationDuration; // default 0.1
/**
进度条消失动画时间
*/
@property (nonatomic, assign) NSTimeInterval fadeAnimationDuration; // default 0.27
/**
进度条消失延迟时间
*/
@property (nonatomic, assign) NSTimeInterval fadeOutDelay; // default 0.1
/**
设置进度

@param progress 0.0到1.0之间
@param animated 动画执行时间
*/
- (void)setProgress:(float)progress animated:(BOOL)animated;