简体   繁体   中英

UIWebView not working first time in iOS 9

I have a UIWebView , whose delegate is set in viewDidLoad and then a URL is passed to it. This screen is loaded once the app launches. The webview doesn't load the URL and the delegate method (given below) is not called

-(BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType

There is a button on the same screen. When i press that after app launches. The same Web view loads.

Please tell me why my UIWebview is not loading for the first time?

It happens only in iOS 9. In iOS 8, it works perfectly.

Add below key in you .plist and try.

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM