ios - 更改 UIPrintInteractionController 导航栏标题

标签 ios printing title navigationbar

如何更改 UIPrintInteractionController 的导航栏标题(打印机选项)?

enter image description here

最佳答案

您可以使用 UIPrintInteractionController 的委托(delegate)方法来改变它的外观,

- (UIViewController *)printInteractionControllerParentViewController:   (UIPrintInteractionController *)printInteractionController
{
    return self.navigationController;
}
- (void)printInteractionControllerDidPresentPrinterOptions:(UIPrintInteractionController *)printInteractionController
{
    // self.navigationController.topViewController.navigationController.navigationBar.tintColor=[UIColor redColor];
    self.navigationController.navigationBar.tintColor = [UIColor greenColor];

   // self.navigationController.topViewController.navigationController.navigationBar.barTintColor=[UIColor purpleColor];
   self.navigationController.topViewController.navigationController.navigationBar.tintColor=[UIColor yellowColor];
}

关于ios - 更改 UIPrintInteractionController 导航栏标题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20534610/

相关文章:

java - NumberAxis 标签名称(不是刻度标签)大小和字体

ios - 遇到应用程序传输安全问题

iphone - 为什么 SegmentedControl 以相反的顺序打开?

ios - 在 swift 的文本字段中显示带字符串的表情符号

python - PyQt4:如何在修改时更改子窗口的标题

jQuery 工具工具提示 - 更改标题

ios - 无法将 Player 类型的值分配给 SKSpriteNode 类型

c# - 在 C# 中打印 Form/UserControl

javascript - 正文 :after appears on each printed page

linux - 如何在 Lua 和 cups 中使用打印机