Can't see navigation bar of UIPrintInteractionController(Swift) in Light mode

106 Views Asked by At

Issue with light mode in AirPrint(Swift). AirPrint Issue

Is there any way to change the colour of the navigation bar?

1

There are 1 best solutions below

0
ami solani On

Please try this delegate method

- (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];
}