如何更改 UIPrintInteractionController 的导航栏标题(打印机选项)?
最佳答案
您可以使用 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/