The system has a progress bar control UIProgressView. It is also very simple to customize a view yourself. Those progress bars on WeChat are all fake, not real progress. If you turn off the gateway, it will still reach 80~90%
WKWebView has estimatedProgress attribute UIWebView does not but can use NJKWebViewProgress, of course WK can also use NJK I wrote a base class myself, use wk for ios8 and above, otherwise UI, github address https://github.com/yuqingzhud... You should be able to find what you want
https://github.com/ninjinkun/... If compatibility with iOS7 is not considered, then KVO operation on the estimatedProgress attribute of WKWebview can also monitor the progress
On Apple phones, except for Safari’s progress bar, which is real, everything else is fake Customize a view with a height of 2 and change its width in the animation
The system has a progress bar control UIProgressView. It is also very simple to customize a view yourself.
Those progress bars on WeChat are all fake, not real progress. If you turn off the gateway, it will still reach 80~90%
WKWebView has estimatedProgress attribute
UIWebView does not but can use NJKWebViewProgress, of course WK can also use NJK
I wrote a base class myself, use wk for ios8 and above, otherwise UI, github address https://github.com/yuqingzhud...
You should be able to find what you want
SVProgressHUD, it just shows whether loading is complete.
Use this NJKWebViewProgress. There is an address in it
https://github.com/ninjinkun/...
If compatibility with iOS7 is not considered, then KVO operation on the estimatedProgress attribute of WKWebview can also monitor the progress
UIWebview does not support progress bar, iOS 8 or above can use WkWebview
If there is a callback after the loading is completed, make a fake progress. After completing the callback, just set the progress to 100%
On Apple phones, except for Safari’s progress bar, which is real, everything else is fake
Customize a view with a height of 2 and change its width in the animation