• December 4, 2020
  • July 29, 2021

Which class we should use? WKWebView or SFSafariViewController

UIWebViewClass was deprecated and we need to replace it with WKWebView or SFSafariViewController. Which class we should use? I think we use WKWebView normally, but SFSafariViewController has enough functionality in some case. Requirements It is decided which class can be used by requirements. You want to do something just before or after loading pages. You want to know the URL of loading pages. You want to execute JavaScript on loaded pages. If you want to do above, you need to use WKWebView. SFSafariViewController can not do above. Requirements are really needed? “We want to do something just after loading pages.”. […]

  • December 3, 2020
  • July 29, 2021

[2020/04/01] [Swift/ObjC] How to replace UIWebView with WKWebView

According to post in Developer News And Updates on December 23, 2019, UIWebView class was deprecated and apps using it will be rejected. I wrote this change in post below. UIWebView was deprecated We should use WKWebView or SFSafariViewController instead of UIWebView. This post says how to replace UIWebView with WKWebView.

  • November 30, 2020
  • July 29, 2021

UIWebView was deprecated

There are 3 classes to embed the web browser into the iOS app. UIWebView class WKWebView class SFSafariViewController class UIWebView class was deprecated long time ago, now the AppStore doesn’t allow using UIWebView class. Updating Apps that Use Web Views According to this post, if you upload the apps that uses it, the App Store reject the new apps after April 2020, and updates for exiting apps after December 2020. [Swift/ObjC] How to replace UIWebView with WKWebView What should we do? Basically, you need to migrate to the WKWebView class, but it is case by case. If you use the […]