0

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.

Anbu.Karthik
  • 82,064
  • 23
  • 174
  • 143
M.Almeida
  • 71
  • 1
  • 6

1 Answers1

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