【发布时间】:2016-05-21 20:15:13
【问题描述】:
预期输出: 我想将工具栏颜色更改为深黑色。
实际输出: 工具栏为浅灰色。
代码如下:
let webViewController = SFSafariViewController(URL: url, entersReaderIfAvailable: true)
self.navigationController?.toolbar.barTintColor = UIColor.blackColor()
self.navigationController?.toolbar.tintColor = UIColor.whiteColor()
self.navigationController?.toolbar.barStyle = UIBarStyle.Black
self.navigationController?.pushViewController(webViewController, animated: true)
【问题讨论】:
-
那么会发生什么。你的代码不工作还是什么?请添加更多详细信息。
-
@Mack 工具条码对 SFSafariViewController 底部没有影响。
-
你尝试设置 tintcolor 吗?
-
@BlackbirdSR-71 self.navigationController?.toolbar.tintColor = UIColor.whiteColor() 我已经做过了。但它没有任何影响
标签: objective-c iphone swift uitoolbar sfsafariviewcontroller