我们在 iOS 8 中有 WKWebView
,在 iOS 9 中有 SFSafariViewController
。
我知道 WKWebView
是 UIView
的子类,SFSafariViewController
是 UIViewController
的子类。
它们本质上是不同的。
我的问题是关于这两个组件之间的内存管理。
引自 Facebook 的开发人员,Reducing FOOMs in the Facebook iOS app
WKWebView — that actually performs most of its work in a separate process, which means that most web-view-related memory usage would not be attributed to our process.
这有助于防止我们的应用程序因为我们的进程消耗大量内存而被杀死。
SFSafariViewController 是否像 WKWebView 一样在单独的进程中处理与 web View 相关的内存?
最佳答案
是的,Safari View Controller 在您的应用程序之外的单独进程中运行。 这是 a link to WWDC session .
关于ios - WKWebView 与 SFSafariViewController,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32633386/