Latest 1.0.0
Homepage https://github.com/KBvsMJ/EBTGradientProgressViewDemo
License MIT
Platforms ios 8.0, requires ARC
Authors

通过两种方法为webview添加渐变进度条

使用pod指令把类库添加项目中:

pod 'EBTWebViewWithGradientProgress', '~> 1.0.0'

方法1: 直接引用EBTGradientProgressView这个类库来实现

@property(nonatomic,assign) CGFloat progressValue;

  • (void)startAnimating;

  • (void)stopAnimating;

方法2:

直接引用用EBTWebViewWithGradientProgressView这个类库来实现,XIB或者SB的话需要将Webview的Class设置为"EBTWebViewWithGradientProgressView"就可以。

以上两种方法具体实现过程请看项目中的Demo

效果演示图

Image

Latest podspec

{
    "name": "EBTWebViewWithGradientProgress",
    "version": "1.0.0",
    "summary": "iOS UIWebView Add with GradientProgress",
    "description": "The class library for the UIWebview can be very simple to achieve the addition of color gradient progress bar",
    "homepage": "https://github.com/KBvsMJ/EBTGradientProgressViewDemo",
    "license": "MIT",
    "authors": {
        "KBvsMJ": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source": {
        "git": "https://github.com/KBvsMJ/EBTGradientProgressViewDemo.git",
        "tag": "1.0.0"
    },
    "source_files": "EBTWebViewWithGradientProgress/*.{h,m}",
    "exclude_files": "Classes/Exclude"
}

Pin It on Pinterest

Share This