【问题标题】:iOS 13 UIPrinter quickly goes out of existenceiOS 13 UIPrinter 很快就消失了
【发布时间】:2019-11-23 17:06:58
【问题描述】:

用户使用 UIPrinterPickerController 选择打印机 (UIPrinter)。选择后,该 UIPrinter 将用于整个应用程序的输出 (print(to:) 并持续用于应用程序的后续启动。从 iOS 9 到 iOS 12,此方法运行良好。

但是,在 iOS 13 下,会发生以下情况:

UIPrinter 在第一次 使用时始终可用。但是一旦使用,在很短的时间(不到一分钟)之后,UIPrinter 似乎就消失了。当通过 AirPrint 使用 Xcode 打印机模拟器或实际的物理打印机时会发生这种情况。

这是第一次打印时的 Xcode 控制台消息 - 它有效:

Simulated\032Color\032Laser\032@\032myMac._ipps._tcp.local.: Print-Job successful with warning: Job attributes did not match print document.
Simulated\032Color\032Laser\032@\032myMac._ipps._tcp.local.: Release-Job successful with warning: successful-ok (successful-ok)

这是 1 分钟后发生的事情:

Simulated\032Color\032Laser\032@\032myMac._ipps._tcp.local.: Print-Job failed: Printer "Simulated_Color_Laser_myMac" does not exist.

发生这种情况时,继续的唯一方法是在 PrinterPicker 中重新选择 UIPrinter。

关于这里可能发生的事情有什么想法吗?

谢谢,

【问题讨论】:

    标签: swift uipickerview ios13 uiprintinteractioncntrler


    【解决方案1】:

    已在 2020 年 3 月 24 日发布的 iOS 版本 13.4 中修复。

    【讨论】:

      猜你喜欢
      • 2020-07-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-10-06
      • 1970-01-01
      • 2017-10-11
      • 2020-06-27
      • 1970-01-01
      相关资源
      最近更新 更多