如何使用UIPrintInteractionController
显示页面方向选项?实际上我想用一个开关让用户选择他想要打印的方向。任何帮助都会很棒。我尝试使用UIPrintInteractionController
的委托方法。
- (UIViewController *)printInteractionControllerParentViewController:(UIPrintInteractionController *)printInteractionController
{
return nav;
}
- (void)printInteractionControllerWillPresentPrinterOptions:(UIPrintInteractionController *)printInteractionController
{
UISwitch * orietationSwitch = [[UISwitch alloc]initWithFrame:CGRectMake(50, 200,50, 21)];
[nav.topViewController.view addSubview:orietationSwitch];
}