Skip to content

KSkyeEx/JKProgress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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;

About

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

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors