Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UIActivityViewController and UIDocumentInteractionController

How do I combine a UIActivityViewController and a UIDocumentInteractionController? The Mail app and the Tumblr app seem to compine a UIActivityViewController with a UIDocumentInteractionController because their controllers also show the "Open in" buttons besides the UIActivities. How can I accomplish this?

like image 656
christopher.online Avatar asked Oct 25 '13 13:10

christopher.online


People also ask

What is Uiactivityviewcontroller?

A view controller that you use to offer standard services from your app. iOS 6.0+ iPadOS 6.0+ Mac Catalyst 13.1+

What is UIDocumentInteractionController?

According to Apple docs, UIDocumentInteractionController is a viewcontroller that previews, open, or print files whose file format cannot be handled directly by your app. In short, UIDocumentInteractioncontroller allows us (developers) to open different files using other apps installed on iPhone or iPad device.


1 Answers

Use presentOptionsMenuFromRect:inView:animated: in UIDocumentInteractionController

like image 91
slecorne Avatar answered Oct 13 '22 20:10

slecorne