0

I need to open MS Office files from my application. I have implemented it with the help of QuickLook (QLPreviewController). But I want to open files within QuickOffice application.

In Safari (it uses QuickLook to view MS Office files) I see a button "Open in QuickView". So I wonder how one can do the same?

Jason Sturges
  • 15,855
  • 14
  • 59
  • 80
shuvalov
  • 4,713
  • 2
  • 20
  • 17

1 Answers1

0

Use UIDocumentInteractionController, you can present an "Open in..." menu with either the presentOpenInMenuFromRect:inView:animated: or the presentOpenInMenuFromBarButtonItem:animated: method.

There is no way for third-party apps to display a direct "Open in App XYZ" button, like Safari does.

omz
  • 53,243
  • 5
  • 129
  • 141