I have an application / project with the target deployment version - iOS 10.
I used UIWebView , which is now deprecated and replaced with WKWebView . So, I want to replace UIWebView with WKWebView in my project too.
This forces me to either use UIWebView (with iOS 10) or change the deployment target on iOS 11.
I cannot change the purpose of the deployment, but as an interim solution I added software (software) support for both. I mean, if the user device OS is iOS 11 (or higher), use WKWebView else use UIWebView (for iOS 10 or lower).
Release statement: The storyboard view controller does not support both versions, I mean, in the storyboard, if I set the goal of deploying the View controller for iOS 11, then the application will crash in iOS 10 (and obviously it should) and if I set the goal of deploying a view controller for iOS 10, then the storyboard does not allow me to create a project.
For iOS 10, WKWebView shows me this error: Xcode 9 GM - WKWebView NSCoding support was broken in previous versions
Question: How to make a storyboard (View controller) use WKWebView for iOS 11 and UIWebView for iOS 10? Are there any configuration settings or options in the story panel (view controller) that can allow me to add both outputs of the interface?
ios ios10 uiwebview wkwebview ios11
Krunal Oct 17 '17 at 15:18 2017-10-17 15:18
source share