public class UIDocumentInteractionControllerDelegateClass :
UIDocumentInteractionControllerDelegate

      {

          UIViewController viewC;

      

          public
UIDocumentInteractionControllerDelegateClass(UIViewController controller)

          {

             viewC = controller;

          }

      

          public override UIViewController ViewControllerForPreview
(UIDocumentInteractionController controller)

          {

              return viewC;

          }

      

          public override UIView ViewForPreview
(UIDocumentInteractionController controller)

          {

              return viewC.View;

          }

      

          public override RectangleF RectangleForPreview
(UIDocumentInteractionController controller)

          {

              return viewC.View.Frame;

          }

      }

 

 

…

 

      UIDocumentInteractionController docC =
UIDocumentInteractionController.FromUrl (NSUrl.FromFilename(filePath));

      docC.Delegate = new
UIDocumentInteractionControllerDelegateClass(tabBarController);

      docC.PresentOpenInMenu (new RectangleF(0,0,0,0),
tabBarController.View,true);

 

 

-----Ursprüngliche Nachricht-----

Von: [email protected]
[mailto:[email protected]] Im Auftrag von MilkyJoe

Gesendet: Mittwoch, 15. Februar 2012 14:12

An: [email protected]

Betreff: [MonoTouch] UIWebView: Implementing "Open in iBooks" functionality

 

I'm using a UIWebView to display remotely hosted PDF files.

 

In Safari, when viewing PDFs, there is an "Open in iBooks" button in the top
right of the screen. I'd like to offer this functionality in my app. I'm
guessing its custom functionality offered is Safari, rather than something
offered by the UIWebView control? I couldn't see any such feature exposed
vie properties.

 

Has anyone implemented such a feature in their app?

 

Thanks

 

--

View this message in context:
http://monotouch.2284126.n4.nabble.com/UIWebView-Implementing-Open-in-iBooks
-functionality-tp4390343p4390343.html

Sent from the MonoTouch mailing list archive at Nabble.com.

_______________________________________________

MonoTouch mailing list

[email protected]

http://lists.ximian.com/mailman/listinfo/monotouch

_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to