Ana*_*sia 30 ipad ios uiprintinteractioncntrler
我正在使用UIPrintInteractionController从rect中呈现它.
UIPrintInteractionController *controller = [UIPrintInteractionController sharedPrintController];
// than set printing settings
...
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
[controller presentFromRect:rect inView:view animated:YES completionHandler:completionHandler];
Run Code Online (Sandbox Code Playgroud)
比我设置页数(> 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是私有的,所以我无法在旋转期间获取它并存储.
如何在旋转后恢复打印页数?
抱歉,这似乎是一个显而易见的问题,但您是否将其称为代表?
UIPrintInteractionController *controller = [UIPrintInteractionController sharedPrintController];
controller.delegate = self;
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2165 次 |
| 最近记录: |