我正在将SFSafariViewController
推入UITabBarController
。但是,单击Safari Done按钮会关闭UITabBarController
。如何预防呢?
答案 0 :(得分:0)
如果您要推动SFSafariViewController
,请尝试用popViewController
代替dismiss
self.navigationController?.popViewController(animated: true)
或者您可以present
SFSafariViewController
而不是将其推入
safariViewController.modalTransitionStyle = .crossDissolve
safariViewController.modalPresentationStyle = .overCurrentContext
self.present(safariViewController, animated: false, completion:nil)