UIWebView does not load the URL

与世无争的帅哥 提交于 2019-12-03 20:29:47
Rahul Gupta

when you are going back, make request to nil and load empty htmlstring to webview. One more thing, remove [indicator removeFromSuperview]; line from

- (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error 
-(void)webViewDidFinishLoad:(UIWebView *)webView

Instead of adding your webview on your button click each time. Why don't you add your webview into your viewDidLoad and hide and show it in your button click.

use

NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"http://www.google.com"]];

if it is work fine then check objWine.strOnlineURL

otherwise it is clear :)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!