Need help with NJKWebViewProgress?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

ninjinkun
3.9K Stars 611 Forks MIT License 81 Commits 44 Opened issues

Description

UIWebView progress interface

Services available

!
?

Need anything else?

Contributors list

# 21,619
Objecti...
Ruby
uiwebvi...
pull-re...
48 commits
# 41,341
Objecti...
uiwebvi...
videojs
flash
2 commits
# 169,992
Objecti...
Ruby
uiwebvi...
1 commit
# 14,238
Swift
Objecti...
uiwebvi...
bdd
1 commit
# 60,505
Objecti...
uiwebvi...
Shell
SQLite
1 commit
# 96,345
Shell
Android
cropper
Objecti...
1 commit
# 44,135
uiwebvi...
archite...
Android
iOS
1 commit
# 105,413
Objecti...
uiwebvi...
Swift
threads...
1 commit

NJKWebViewProgress

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

Requirements

  • iOS 4.3 or later
  • ARC

Usage

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.
objc
-(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.

Install

CocoaPods

pod 'NJKWebViewProgress'

License

MIT license.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.