ios - How do I Implement printInteractionControllerParentViewController: with a popover? -
for implementation I am doing : as How to get advice on popover for a more sensible way would be helpful Here's my implementation: You can set this when you start our controller. printInteractionControllerParentViewController
UIPrintInteractionControllerDelegate Popover showing the print options necessary to customize which is this part, popover (portrait) appears in the size of the whole height of the iPad, before shrinking down in normal size.
- ( UIViewController *) printInteractionControllerParentViewController :. (UIPrintInteractionController *) printInteractionController {UINavigationController * navigationController = [[UINavigationController alloc init]]; Popover = [[UIPopoverController alloc] initWithContentViewController: Navigation Controller]; [PopOverSetPopwerbackgroundWeeklass: [customputerbackgroundviewview class]]; [Popovers presentPopoverFromRect: _printButton.frame Keeping in mind: self.view permissionArrowDirections: UIPopoverArrowDirectionAny animated: Yes]; [Popover.contentViewController.viewSetbackGram color: background color]; Return Navigation Controller; }
yourViewController.contentSizeForViewInPopover = CGSizeMake (320.0, 750.0);
Comments
Post a Comment