我正在使用UIPrintInteractionController
从矩形呈现它。
UIPrintInteractionController *controller = [UIPrintInteractionController sharedPrintController];
// than set printing settings
...
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
[controller presentFromRect:rect inView:view animated:YES completionHandler:completionHandler];
比我设置页数(>1)并选择打印机。在设备旋转之前我打电话
[controller dismissAnimated:animated];
根据 Xcode 文档:You should dismiss the printing options when they are presented in a sheet or animated from a rectangle and the user changes the orientation of the device.
当我UIPrintInteractionController
在旋转后呈现时,打印份数设置回 1(如在初始视图中),而打印机保持选中状态。UIPrintInfo 的 Ivar _copies 是私有的,因此我无法在轮换期间获取并存储它。
旋转后如何恢复打印页数?