gpt4 book ai didi

ios - UIPrintInteractionController,关闭双面选项?

转载 作者:可可西里 更新时间:2023-11-01 03:33:00 33 4
gpt4 key购买 nike

当使用 UIPrintInteractionController 时,

关闭“页面范围”和“份数”选项很容易

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

enter image description here

有没有办法关闭双面选项?

相反,有没有人真正向 Apple 确认过,无法关闭双面选项?如果是这样谢谢。

最佳答案

var 双工:UIPrintInfoDuplex

根据官方文档:-

If a printer is capable of duplex printing, a switch in the printing options allows users to toggle between single-side and double-sided printing. See the description of the UIPrintInfoDuplex constants for more information.

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

none:无双面(duplex)打印;仅单面打印。

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

关于ios - UIPrintInteractionController,关闭双面选项?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24572691/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com