ChenYilong / ChenYilong/iOS11AdaptationTips
Deal With WKWebView DNS pollution problem in iOS11
Open
- Dominant language
- No language data
- Stars
- 477
- Forks
- 47
- PR merge metrics
- No merged PRs in 30d
Description
iOS 11 WKWebView provides APIs which work like NSURLProtocol in UIWebView, it's useful to WKWebView DNS pollution problem.
New API `-[WKWebViewConfiguration setURLSchemeHandler:forURLScheme:]`,provide `WKURLSchemeHandler` to handle the request with your network tool.
Reference: [Apple API Doc](https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/2875766-seturlschemehandler?language=objc)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.