Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to keep showing splash screen until webview is finished loading. objective-c [closed]

After my splash screen loads there is white background for a few seconds until the html loads. How can I keep displaying the splash screen till the webivew loads.

like image 247
user1898829 Avatar asked Nov 12 '22 23:11

user1898829


1 Answers

You can add an UIIMageView with the splash screen image over the UIWebView Of course the view controller showing both views must be the UIWebView delegate and when it receives

– webViewDidFinishLoad:

or

– webView:didFailLoadWithError:

in case of error of course you should remove the image view

like image 57
i-konov Avatar answered Nov 15 '22 05:11

i-konov