UIActivityViewController and UIDocumentInteractionController
Asked Answered
S

1

7

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?

Saberhagen answered 25/10, 2013 at 13:19 Comment(1)
You should upload the image using inbuilt image service or delete the link as it's broken.Kerri
M
3

Use presentOptionsMenuFromRect:inView:animated: in UIDocumentInteractionController

Markland answered 25/10, 2013 at 13:37 Comment(4)
This does not work. It does not show any actions typical to UIActivityController such as Message, Email, and PrintPaley
First, thank you so much! I was searching for this almost two hours… fiddling around with UIActivities etc, but it could have been so simple :) @fishinear: check (and set) the UTI type of your documentInteractionViewController. Probably, you may need to set it manually after allocation.Kori
@tubtub I have set the correct UTI. I think the problem is that Apple does not know the UTI, and therefore does not know what it can do with it. I should maybe set an incorrect UTI that Apple knows about.Paley
@Paley Yeah, this should work. You could try kUTTypeText or kUTTypePlainText and review the results.Kori

© 2022 - 2024 — McMap. All rights reserved.