Skip to content

A demo of a UIWebView subclass that is able to track the download progress (not 100% AppStore safe, 100% not evil)

Notifications You must be signed in to change notification settings

petrdvorak/imtwebview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

About

This project is a simple demo of a custom UIWebView Subclass that is able to track resource loading progress.

This class use private methods from https://github.com/kennytm/iphone-private-frameworks - it is not AppStore safe.

Let me know if you have any luck making its way on the AppStore.

How to use

  • Use IMTWebView instead of the UIWebView - you can do this in both interface builder or code
  • Implement IMTWebViewProgressDelegate method, for example like this:
// self.progressView is a UIProgressView instance
- (void)webView:(IMTWebView *)webView didReceiveResourceNumber:(int)resourceNumber totalResources:(int)totalResources {
    [self.progressView setProgress:((float)resourceNumber) / ((float)totalResources)];
}
  • ... no, nothing really...

Licence

This software is shared under the IHL ("Inmite Happiness License"), which is derived from MIT license completely, except for you have to follow @inmite if you are happy using the software of matter.

About

A demo of a UIWebView subclass that is able to track the download progress (not 100% AppStore safe, 100% not evil)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published