0

Currently I'm using WKWebView, but it is supporting from iOS 11 onwards. So if i want to use web view in iOS 10 or lower versions what is the solution. My app is already in App Store with UIWebView. Just now I changed from UIWebView to WKWebView. But it's not supporting before iOS 11.

Naresh
  • 16,698
  • 6
  • 112
  • 113
  • 3
    Does this answer your question? [Xcode 9 GM - WKWebView NSCoding support was broken in previous versions](https://stackoverflow.com/questions/46221577/xcode-9-gm-wkwebview-nscoding-support-was-broken-in-previous-versions) – Mohit Kumar Apr 11 '20 at 07:09

2 Answers2

1

Currently I'm using WKWebView, but it is supporting from iOS 11 onwards. So if i want to use web view in iOS 10 or lower versions what is the solution.

This is not true. WKWebView is supported from iOS 8 onwards.

Jim
  • 72,985
  • 14
  • 101
  • 108
  • but I got error – Naresh Apr 11 '20 at 06:07
  • 1
    Post the error. Never say *"I got error"* without posting the error. – Jim Apr 11 '20 at 06:08
  • WKWebView before iOS11.0 (WKWebView NSCoding support was broken in previous versions) – Naresh Apr 11 '20 at 07:20
  • 2
    `NSCoding` is how storyboards and nibs are deserialised. You need to create `WKWebView` programmatically. See this question for details: https://stackoverflow.com/questions/46221577/xcode-9-gm-wkwebview-nscoding-support-was-broken-in-previous-versions – Jim Apr 11 '20 at 07:28
  • thank you. For lower version we need to create WKWebView programmatically. – Naresh Apr 17 '20 at 16:30
0

WKWebView is supported from iOS 8 onwards. So I don't think you will have any problem with your app.

You can refer the documentation for clarification.

Jithin
  • 913
  • 5
  • 6