Latest 0.0.2
License MIT
Platforms ios 7.0, requires ARC


NJKWebViewProgress is a progress interface library for UIWebView. Currently, UIWebView doesn’t have official progress interface. You can implement progress bar for your in-app browser using this module.

iOS ScreenShot 1

NJKWebViewProgress doesn’t use CocoaTouch’s private methods. It’s AppStore safe.

Used in Production


  • iOS 4.3 or later
  • ARC


Instance NJKWebViewProgress and set UIWebViewDelegate. If you set webViewProxyDelegate, NJKWebViewProgress should perform as a proxy object.

_progressProxy = [[NJKWebViewProgress alloc] init]; // instance variable
webView.delegate = _progressProxy;
_progressProxy.webViewProxyDelegate = self;
_progressProxy.progressDelegate = self;

When UIWebView start loading, NJKWebViewProgress call delegate method and block with progress.

-(void)webViewProgress:(NJKWebViewProgress *)webViewProgress updateProgress:(float)progress
    [progressView setProgress:progress animated:NO];
progressProxy.progressBlock = ^(float progress) {
    [progressView setProgress:progress animated:NO];

You can determine the current state of the document by comparing the progress value to one of the provided constants:

-(void)webViewProgress:(NJKWebViewProgress *)webViewProgress updateProgress:(float)progress
    if (progress == NJKInteractiveProgressValue) {
        // The web view has finished parsing the document,
        // but is still loading sub-resources

This repository contains iOS 7 Safari style bar NJKWebViewProgressView. You can choose NJKWebViewProgressView, UIProgressView or your custom bar.



pod 'NJKWebViewProgress'


MIT license.

Latest podspec

    "name": "ZLWebViewProgress",
    "version": "0.0.2",
    "license": "MIT",
    "summary": "UIWebView progress interface.",
    "homepage": "",
    "authors": {
        "zhoulincome": "[email protected]"
    "source": {
        "git": "",
        "tag": "0.0.2"
    "platforms": {
        "ios": "7.0"
    "requires_arc": true,
    "subspecs": [
            "name": "Core",
            "source_files": "ZLWebViewProgress/NJKWebViewProgress.{h,m}"
            "name": "ProgressView",
            "source_files": "ZLWebViewProgress/NJKWebViewProgressView.{h,m}"

Pin It on Pinterest

Share This