Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Open in" feature in UIActivityViewController

I need your help with UIActivityViewController. I need to present activity controller for the file where, except for default actions, the user will be able to open the file in other apps. I know how to do this with UIDocumentController, which shows popover with all apps able to open the file. But how can I show all these apps in UIActivityViewController?

P.S. This behavior can be seen in Apple Mail app, for example.

like image 764
Yevgeniy Leychenko Avatar asked Mar 18 '14 15:03

Yevgeniy Leychenko


1 Answers

Look at TTOpenInAppActivity for a way to combine both a UIActivityViewController (for normal sharing), and an 'Open in' button on that which brings up a UIDocumentInteractionController. Pre-iOS 8, that is the best way to manage this.

like image 72
Rob Glassey Avatar answered Oct 03 '22 11:10

Rob Glassey