Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

22094417: UIPrintInteractionController does not indicate its method of dismissal #26

Open
openradar-mirror opened this issue Aug 3, 2015 · 0 comments

Comments

@openradar-mirror
Copy link

Description

Summary:
iPad: Using UIPrintInteractionController's delegate methods to determine when the lifecycle of the controller is ending, an app using the print controller is unable to determine if the popover was dismissed by invoking the "Print" button OR if the popover is dismissed because the user tapped elsewhere in the parent view.

  • (void)printInteractionControllerWillDismissPrinterOptions:(UIPrintInteractionController *)printInteractionController;
  • (void)printInteractionControllerDidDismissPrinterOptions:(UIPrintInteractionController *)printInteractionController;

both return the printInteractionController, but there are no properties of that object available to say how the dismissal took place.

Steps to Reproduce:
Use UIPrintInteractionController and handle the delegate methods

  • (void)printInteractionControllerWillDismissPrinterOptions:(UIPrintInteractionController *)printInteractionController;
  • (void)printInteractionControllerDidDismissPrinterOptions:(UIPrintInteractionController *)printInteractionController;

In either case, the properties of printInteractionController are equivalent no matter how the PIC was dismissed (print button OR tap outside popover).

Expected Results:
Either:

  • delegate methods return another parameter "willPrint = YES/NO"
  • additional delegate methods to describe the printing lifecycle, like

"...didDismissWithPrintButton"

Actual Results:
A user of the PrintInteractionController doesn't know how the controller was dismissed.

Version:
iOS 7.x, iOS 8.x

Notes:

Configuration:
iPad (any) iPad Simulator (any)

Attachments:

Product Version: 8.x
Created: 2015-07-31 18:55:29.952870
Originated: 2015-07-31T00:00:00
Open Radar Link: http://www.openradar.me/22094417

@openradar-mirror openradar-mirror added this to the iOS milestone Aug 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant