I am a novice in ios development. I have integrate A UIWebView in my app to load a web page. This loading is done in viewdidLoad function.
I would like to integrate MBProgressHUD during the loading of the webpage.
Can you help me please? Do you have some examples?
Thanks for your help.
BR
Your UIWebViewDelegate
offers you three methods that you can use for that:
– webViewDidStartLoad:
– webViewDidFinishLoad:
– webView:didFailLoadWithError:
You can show the progress view in webViewDidStartLoad:
and remove it in webViewDidFinishLoad:
or webView:didFailLoadWithError:
.
Here you can find an example of showing/hiding MBProgressHUD.