{"id":2258,"url":"https://github.com/ninjinkun/NJKWebViewProgress","last_synced_at":"2025-08-02T23:32:29.973Z","repository":{"id":8162118,"uuid":"9583745","full_name":"ninjinkun/NJKWebViewProgress","owner":"ninjinkun","description":"UIWebView progress interface","archived":false,"fork":false,"pushed_at":"2020-01-04T10:42:50.000Z","size":654,"stargazers_count":3895,"open_issues_count":42,"forks_count":594,"subscribers_count":100,"default_branch":"master","last_synced_at":"2024-10-29T15:47:35.471Z","etag":null,"topics":["objective-c","uiwebview"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ninjinkun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-04-21T18:34:35.000Z","updated_at":"2024-10-20T02:06:08.000Z","dependencies_parsed_at":"2022-08-29T03:13:56.481Z","dependency_job_id":null,"html_url":"https://github.com/ninjinkun/NJKWebViewProgress","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ninjinkun%2FNJKWebViewProgress","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ninjinkun%2FNJKWebViewProgress/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ninjinkun%2FNJKWebViewProgress/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ninjinkun%2FNJKWebViewProgress/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ninjinkun","download_url":"https://codeload.github.com/ninjinkun/NJKWebViewProgress/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228503151,"owners_count":17930522,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["objective-c","uiwebview"],"created_at":"2024-01-05T20:16:09.100Z","updated_at":"2024-12-06T17:30:53.740Z","avatar_url":"https://github.com/ninjinkun.png","language":"Objective-C","readme":"# NJKWebViewProgress\nNJKWebViewProgress 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.\n\n\u003cimg src=\"https://raw.github.com/ninjinkun/NJKWebViewProgress/master/DemoApp/Screenshot/screenshot1.png\" alt=\"iOS ScreenShot 1\" width=\"240px\" style=\"width: 240px;\" /\u003e\n\nNJKWebViewProgress doesn't use CocoaTouch's private methods. It's AppStore safe.\n\n# Used in Production\n- [Yahoo! JAPAN](https://itunes.apple.com/app/yahoo!-japan/id299147843?mt=8)\n- [Facebook](https://itunes.apple.com/app/facebook/id284882215?mt=8‎)\n\n# Requirements\n- iOS 4.3 or later\n- ARC\n\n# Usage\nInstance `NJKWebViewProgress` and set `UIWebViewDelegate`. If you set `webViewProxyDelegate`, `NJKWebViewProgress` should perform as a proxy object.\n\n```objc\n_progressProxy = [[NJKWebViewProgress alloc] init]; // instance variable\nwebView.delegate = _progressProxy;\n_progressProxy.webViewProxyDelegate = self;\n_progressProxy.progressDelegate = self;\n```\n\nWhen UIWebView start loading, `NJKWebViewProgress` call delegate method and block with progress.\n```objc\n-(void)webViewProgress:(NJKWebViewProgress *)webViewProgress updateProgress:(float)progress\n{\n    [progressView setProgress:progress animated:NO];\n}\n```\n\n```objc\nprogressProxy.progressBlock = ^(float progress) {\n    [progressView setProgress:progress animated:NO];\n};\n```\n\nYou can determine the current state of the document by comparing the `progress` value to one of the provided constants:\n\n```objc\n-(void)webViewProgress:(NJKWebViewProgress *)webViewProgress updateProgress:(float)progress\n{\n    if (progress == NJKInteractiveProgressValue) {\n        // The web view has finished parsing the document,\n        // but is still loading sub-resources\n    }\n}\n```\n\nThis repository contains iOS 7 Safari style bar `NJKWebViewProgressView`. You can choose `NJKWebViewProgressView`, `UIProgressView` or your custom bar.\n\n# Install\n## CocoaPods\n\n```\npod 'NJKWebViewProgress'\n```\n\n# License\n[Apache]: http://www.apache.org/licenses/LICENSE-2.0\n[MIT]: http://www.opensource.org/licenses/mit-license.php\n[GPL]: http://www.gnu.org/licenses/gpl.html\n[BSD]: http://opensource.org/licenses/bsd-license.php\n[MIT license][MIT].\n","funding_links":[],"categories":["UI","Objective-C","OOM-Leaks-Crash","uiwebview"],"sub_categories":["Activity Indicator","Other free courses","WebView-ProgressBar"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fninjinkun%2FNJKWebViewProgress","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fninjinkun%2FNJKWebViewProgress","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fninjinkun%2FNJKWebViewProgress/lists"}