PDA

View Full Version : How to cause an UIWebView to display




guydor4
Nov 11, 2009, 05:34 AM
an UIAlertView if it failed to load the page?



Thanks!



Niiro13
Nov 11, 2009, 06:40 AM
I suggest either a closer look at the documentation or a more thorough understanding of the way delegates work.

UIWebViewDelegate has a method webView:didFailLoadWithError: which you can override in order to initialize an alert and display it.

guydor4
Nov 11, 2009, 06:50 AM
I suggest either a closer look at the documentation or a more thorough understanding of the way delegates work.

UIWebViewDelegate has a method webView:didFailLoadWithError: which you can override in order to initialize an alert and display it.

I looked for it in the documentation, I found it but I didn't understand how to use it

Can you please help me?