UIPrintInteractionController在iOS 13 Beta设备中无法正常工作

时间:2019-09-05 04:21:50

标签: objective-c xcode ios13 uiprintinteractioncntrler

当我尝试用目标C代码加载打印机时,打印机视图从屏幕上消失。有人可以调查吗?

我尝试使用UIPrintInteractionController的委托方法 但是显示打印机控制器时不在屏幕上。

此代码在ios 12中正常工作,我希望在ios 13中使用相同的打印机屏幕

UIPrintInteractionController *printController = [UIPrintInteractionController sharedPrintController];

[printController presentFromRect:self.actionsButton.frame inView:self.view animated:NO 
completionHandler:^(UIPrintInteractionController 
 *printInteractionController, BOOL completed, NSError *error) {
       if (completed) {
           [self.actionsPopoverController dismissPopoverAnimated:YES];
            self.actionsPopoverController = nil;
        }
    }];

下面的屏幕短

Screen Shot

1 个答案:

答案 0 :(得分:2)

我也遇到过同样的问题。但这是iOS 13的一个操作系统问题。此问题已由Apple 已修复,适用于iOS 13.1 beta版。尝试在iOS 13.1 Beta中运行代码