I'm loading a local html template with some js code into webview. It works most of the time. But sometimes, the shouldStartLoadWithRequest
delegate gets called once and won't get called at all later. By the way, I'm seeing this issue more consistently in iOS 9.1 and above.
Whenever this issue occurs, if I recreate the webview and load same content, then it works fine. So, I wanted to know why it doesn't work the first time (inconsistent) but works the second time.
I'm calling
[_webView setDelegate:nil];
//and
[_webView stopLoading]; in dealloc method.
Would be helpful if anyone can suggest something.