I made an iOS application with Xcode and Swift using only WebView. Sometimes the website displayed by this WebView crashes. In this case, I want to reload WebView.
For this, I read that a new trigger has appeared in iOS 9, which is called when:
The web content browsing process ends.
Source: iOS Developer Library
So I add this function to my file ViewController:
func webViewWebContentProcessDidTerminate(webView: WKWebView){
print("Reload");
self.webView!.reload();
}
But when my site crashes, don't add anything, so I wonder: in which case is webViewWebContentProcessDidTerminate called?
source
share