Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Printing on iOS with UIPrintInteractionController

$
0
0

I tried to print with the UIPrintInteractionControlleron iOS, however the popover is not showing up when i call PresentFromRectInViewAsync. The screen gets dark and i can also dismiss the ( not visible ) popover by just clicking somewhere on the screen.

This is basically what i did:
controller.PresentFromRectInViewAsync(Helper.GetTopView().Frame, Helper.GetTopView(), false);

Where Helper.GetTopView() is:

UIViewController controller = UIApplication.SharedApplication.KeyWindow.RootViewController;
while (controller.PresentedViewController != null)
{
    controller = controller.PresentedViewController;
}
return controller.View;

Anyone tried this before?


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>