因为presenting view controllers on detached view controllers is discouraged,我不能在viewDidLoad中显示视图控制器。然而,我的viewDidAppear被无限地调用,图像拾取器控制器被添加,然后在每次调用时从屏幕上删除。我尝试分派到主队列,但没有解决问题。
复制完所有cookie后,我加载webview
let webView = WKWebView(frame: containerView.bounds, configuration: WKWebViewConfiguration// Release a block from the dispatch group every time a cookie is successfully set in the WKWebView's然而,在运行n次(通常是3次或4次)关闭和打开此web视图<