【发布时间】:2017-01-10 03:18:41
【问题描述】:
我正在尝试更改 UIDocumentInteractionController 呈现的视图的默认标题颜色?默认颜色是黑色,唯一可用的属性是标题。
【问题讨论】:
-
我可以更改背景颜色和色调,但不能更改标题颜色。
-
tintColor也会改变标题颜色。
标签: ios objective-c uidocumentinteraction
我正在尝试更改 UIDocumentInteractionController 呈现的视图的默认标题颜色?默认颜色是黑色,唯一可用的属性是标题。
【问题讨论】:
tintColor 也会改变标题颜色。
标签: ios objective-c uidocumentinteraction
迅速
func documentInteractionControllerViewControllerForPreview(_ controller: UIDocumentInteractionController) -> UIViewController
{
navigationController?.navigationBar.titleTextAttributes = [NSAttributedStringKey.foregroundColor:UIColor.white]
return self.navigationController ?? self
}
【讨论】: