【发布时间】:2015-11-02 16:59:35
【问题描述】:
我正在使用SFSafariViewController 访问从UITableViewController 调用的网站。因为我的应用有一种很轻的感觉,所以我在AppDelegate中添加了以下代码行:
self.window.tintColor = [UIColor whiteColor];
运行SFSafariViewController 时,我得到以下信息:
无论如何我可以将Done 按钮的颜色更改为蓝色(默认情况下)?
我在拨打SFSafariViewController 时尝试了以下方法,但没有效果:
[self presentViewController:safariVC animated:YES completion:^{
safariVC.navigationController.navigationItem.rightBarButtonItem.tintColor = [UIColor blueColor];
[self presentViewController:safariVC animated:YES completion:^{
safariVC.navigationController.navigationBar.tintColor = [UIColor blueColor];
}];
这些都不起作用。
我当然可以将应用程序保留为默认设置并从AppDelegate 中取出白色设置,但我希望在应用程序中使用这种方法,因为蓝色在自定义主题中显得过于突出。
对此的任何指导将不胜感激。
【问题讨论】:
标签: ios objective-c iphone swift sfsafariviewcontroller