Search code examples
iphoneobjective-ciosipadairprint

How can you tell if a UIPrintInteractionController is showing?


Is there a way to tell if a UIPrintInteractionController is showing (maybe similar to the way you would check a popover)?

if ([popover isPopoverVisible]) {

    //the popover is visible

}

Solution

  • Looks like you'll just have to keep track yourself with UIPrintInteractionControllerDelegate

    – printInteractionControllerWillPresentPrinterOptions:
    – printInteractionControllerDidPresentPrinterOptions:
    – printInteractionControllerWillDismissPrinterOptions:
    – printInteractionControllerDidDismissPrinterOptions: