Intercept request with WKWebView

前端 未结 6 596
遇见更好的自我
遇见更好的自我 2021-02-04 05:32

Now i\'m using UIWebView and with canInitWithRequest: of NSURLProtocol i can intercept all requests and do with it what I want.

In

6条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-04 06:19

    in iOS 11 WKWebView has come up with Custom Scheme Handler called WKURLSchemeHandler, which you can use to intercept the custom events. for more info check out this project. https://github.com/BKRApps/KRWebView

提交回复
热议问题