• Stars
    star
    3,900
  • Rank 11,129 (Top 0.3 %)
  • Language
    Objective-C
  • License
    MIT License
  • Created over 11 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

UIWebView progress interface

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.

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

More Repositories

1

NJKScrollFullScreen

Scroll to full screen like Facebook app
Objective-C
942
star
2

ReSwift-Twitter-Demo

A ReSwift example
Swift
27
star
3

EDAMSync

Test implementation for Evernote Data Access and Management (EDAM)
Objective-C
24
star
4

blog-feedback-app

Visualize your blog's impact
TypeScript
24
star
5

rubymotion-irc

IRC Client with RubyMotion
Ruby
23
star
6

Android-Redux-Twitter-Demo

A Redux example for Android
Java
20
star
7

NSCacheTest

NSCache sample app
Objective-C
11
star
8

ScrollFullScreen

Scroll to full screen for Android
Java
11
star
9

AlertResume

Network error handling sample app
Objective-C
5
star
10

Learning-Programming-Collective-Intelligence

Implement "Programming Collective Intelligence" code with Perl
Perl
3
star
11

ios-programming-the-big-nerd-ranch-guide

Exercises for iOS Programming: The Big Nerd Ranch Guide (2nd Edition)
Objective-C
3
star
12

bon3-ios

bon3 app
Objective-C
2
star
13

vue-slow-performance-sample

Roppongi.vue #4で使うデモアプリ https://scrapbox.io/ninjinkun/Vue%E3%81%AE%E3%83%AA%E3%82%A2%E3%82%AF%E3%83%86%E3%82%A3%E3%83%96%E3%82%B7%E3%82%B9%E3%83%86%E3%83%A0%E3%82%92%E7%90%86%E8%A7%A3%E3%81%97%E3%81%A6%E3%83%91%E3%83%95%E3%82%A9%E3%83%BC%E3%83%9E%E3%83%B3%E3%82%B9%E4%BD%8E%E4%B8%8B%E3%82%92%E9%98%B2%E3%81%94%E3%81%86_(Roppongi.vue_%234_)
Vue
2
star
14

RestoreSample

UIStateRestorationのサンプルコードです
Objective-C
1
star
15

VariableHeightCellDemo

Objective-C
1
star
16

intern2010

2010年のはてなインターン用サンプルプロジェクトです
Perl
1
star
17

firebase-todo-sample

社内Firebase勉強会用のvue製Todoリスト
Vue
1
star
18

TwitterSample

勉強会用のiPhoneアプリTwitterクライアントのサンプルコードです
Objective-C
1
star