UIPrintInteractionController
ポップアップ内に実装する必要があります。私は実装しました -
(UIViewController *)printInteractionControllerParentViewController:(UIPrintInteractionController *)printInteractionController {
UINavigationController* navigationController = [[UINavigationController alloc] init];
UIPopoverController *popover = [[UIPopoverController alloc] initWithContentViewController:navigationController];
[popover presentPopoverFromRect:address.frame inView:self.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
[popover.contentViewController.view setBackgroundColor:[UIColor grayColor]];
navigationController.preferredContentSize = CGSizeMake(320, 540);
return navigationController;
}
しかし、それは言ってクラッシュします:
reason: '-[UIPopoverController initWithContentViewController:] called when not running under UIUserInterfaceIdiomPad.'