last day (14 days later) » 

7:19 AM
0
Q: UIWebView not loading HTML String when failed to load URL

Augustine P AI am trying to load an "Error page" inside webView didFailLoadWithError delegate method when UIWebView failed to load page from URL. I tried to load the error page directly and its working perfectly. Here my code given below, - (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)...

 
I tried your code in Delegate method and it loads html data perfectly without CSS and image.
 
@Dheeraj Did you try to initiate a network based load request and forced to fail loading? I found something interesting in apple document "If, after initiating a network-based load request, you must release your web view for any reason, you must cancel the pending request before releasing the web view."
 
I tried a network based load request and same content loaded when delegate method was called.Also read the apple document.
 
Then I dont understand my problem. For me its not loading :(
 
is the delegate method getting called?
 
7:19 AM
Yes.. Everything working perfect except this :(
 
can u give the link u are passing
 
That I cant give because it need authentication
and VPN also
 
k,then please try and pass a link which doesn't exist and see what happens.
 
ok let me try
My firewall giving error page :) Funny
 
i tried ur code in a simple app and it worked ...
u too can try it..
 
7:26 AM
sure
can u share that?
 
how to share it?
 
upload option is there
 
i currently in the company and my firewall wont all any uploads
for webview just create it and call its delegate method
and pass u r content
thanks for sharing u time.
 
Ok. Thank you very much for sharing your thoughts and time :)
 

last day (14 days later) »