正如标题所述,在iOS 9,SFSafariViewController中,如何改变新产品的整体色调?
发布于 2016-10-12 21:34:57
来自iOS 10的一些消息:现在我们有两个属性来控制SFSafariViewController的总体外观

来源:https://developer.apple.com/reference/safariservices/sfsafariviewcontroller
唯一的缺点是,当然,它不适用于旧版本。
if #available(iOS 10.0, *) {
safariVC.preferredBarTintColor = .black
safariVC.preferredControlTintColor = .white
} else {
safariVC.view.tintColor = .someColor
}发布于 2015-08-10 07:18:22
这是视图的属性,safariVC.view.tintColor = UIColor.someColor()
发布于 2018-05-19 04:30:56
没必要那么做。
只需使用CSafariWebKit并在BarTintColor和TintColor中设置您想要的颜色:
所以,你不需要检查它是否可用。框架为您提供服务。
let vc = SafariViewController(url: url, barTintColor: nil, tintColor: nil)
vc.presentSafari(fromViewController: self, whenDidFinish: nil)https://stackoverflow.com/questions/31913683
复制相似问题