title: UIWebView delegate method shouldStartLoadWithRequest: equivalent in WKWebView?
body: <p>I have a module inside my iOS 7+ app which is a UIWebView. The html page loads a javascript that creates custom-shaped buttons (using the Raphaeljs library). With UIWebView, I set delegate to self. The delegate method <code>webView: shouldStartLoadWithRequest: navigationType:</code> is called each time one of my custom button is pressed. The requests should not be handled by the html, but rather by the iOS code. So I used a request convention (read somewhere here on stackoverflow) using "inapp" as the scheme of my requests. I then check for the host and take the appropriate action.</p>
  
  <p>This code works fine on iOS 7. But the web views appear blank on iOS 8 (bug?), so I decided to use WKWebView for iOS 8 devices. The web views now render fine (and amazingly faster!), but my buttons have no effect.</p>
  
  <p>I tried using <code>- (WKNaviation *)loadRequest:(NSURLRequest *)request</code>, but it's not called.</p>
  
  <p>I can't find a direct equivalent of the UIWebView delegate method <code>webView: shouldStartLoadWithRequest: navigationType:</code>. What's the best way of handling those requests with WKWebView?</p>