ios - How do I Implement printInteractionControllerParentViewController: with a popover? -


for implementation I am doing printInteractionControllerParentViewController

: as 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.

How to get advice on popover for a more sensible way would be helpful

Here's my implementation:

  - ( 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);   

You can set this when you start our controller.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

java - Reaching JTextField in a DocumentListener -

c# - Add Image in a stackpanel based on textbox input -