UIPrintInteractionController, turn off the two-way option?

When using the UIPrintInteractionController

easy to disable the "page range" and "number of copies" options

UIPrintInteractionController *pic = [UIPrintInteractionController sharedPrintController]; pic.delegate = self; pic.printInfo = pif; pic.printFormatter = formatter; pic.showsPageRange = NO; pic.showsNumberOfCopies = NO; 

enter image description here

Is there a way to disable the Double-sided option?

Conversely, has anyone really confirmed to Apple that it is not possible to disable the two-way option? If so, thanks.

+6
source share
1 answer

var duplex: UIPrintInfoDuplex

According to official documentation: -

If the printer supports duplex printing, a switch in the print option allows users to switch between single-sided and duplex printing. See the description of the UIPrintInfoDuplex constants for more information.

 enum UIPrintInfoDuplex : Int { case None case LongEdge case ShortEdge } 

no: no two-sided (duplex) printing; single-sided printing only.

 UIPrintInfo *printInfo = [UIPrintInfo printInfo]; printInfo.duplex = UIPrintInfoDuplexLongEdge; printController.printInfo = printInfo//printController is instance of UIPrintInteractionController 
+2
source

Source: https://habr.com/ru/post/971762/


All Articles