I have webview working fine for version less then ios9, but seems not working for ios9, and its shows me a blank page, but the url is passed.
Asked
Active
Viewed 1,976 times
0
-
its working fine.but taking time to open web page. once update your code . – Uma Madhavi Oct 06 '15 at 10:19
-
In iOS 9 apple made it, by default, refuse all connections not using TLS 1.2. Most likely this is your issue. You should read the iOS 9 release notes and investigate this. If its possible to upgrade the server (if its under your control) – Simon McLoughlin Oct 06 '15 at 10:20
-
@Uma mine its not even opening after waiting a long time. – M.Almeida Oct 06 '15 at 10:26
-
@SimonMcLoughlin i'll read the notes then. – M.Almeida Oct 06 '15 at 10:26
-
@M.Almeida check by replacing weburl – Uma Madhavi Oct 06 '15 at 10:27
-
@Uma Already did it, not working – M.Almeida Oct 06 '15 at 10:30
-
NSURL *url = [NSURL URLWithString:@"http://www.apple.com/"]; NSURLRequest *req = [NSURLRequest requestWithURL:url]; [self.webView loadRequest:req]; – Uma Madhavi Oct 06 '15 at 10:32
-
URL is updated , but its still blank – M.Almeida Oct 06 '15 at 10:42
1 Answers
0
You may want to check the order of updating url and rendering page. In ios9, url will not be changed immediately, even if you directly assign value to it.
So you can try to set a timeout to wait until url updated.
updateUrl();
window.setTimeout(function(){
renderPage();
},30);
sometimes set timeout to 0 would do the trick, because it forces the code runs in the next event loop.

Rongrong Luo
- 392
- 3
- 10