4

I am assuming it is not possible to add apps to the native share dialog, like the one used in the Camera Roll. However I see screenshots around with different apps in the dialog.

Is it only apps that are integrated in the OS that can be in this dialog? Or is it possible with some scheme or something?

jrturton
  • 118,105
  • 32
  • 252
  • 268
Roland Keesom
  • 8,180
  • 5
  • 45
  • 52

3 Answers3

4

I have researched the possibilities of UIDocumentInteractionController mentioned by 'The Tiger' and came to the conclusion that it is not possible.

I have looked at the Apple Documentation, declaring the Document Types in the info.plist works for other apps but not for Mail, Images / Camera Roll / etc; the native share dialogs.

Edit: I really don't get the downvotes.... Here are some references that say it is not possible:

Community
  • 1
  • 1
Roland Keesom
  • 8,180
  • 5
  • 45
  • 52
  • 2
    I downvoted because your answer is wrong in the general case, where CFBundleDocumentTypes works fine. It only fails with certain file types, e.g images. Your question was not specific to images. – oefe Jan 07 '13 at 19:08
  • The question is about 'to add apps to the native share dialog, like the one used in the Camera Roll', how is that not specific to images and videos? There are no other share dialogs afaik – Roland Keesom Jan 10 '13 at 08:15
  • Apple doesn't use the term "native share dialog". If you invent your own terminology, don't be surprised if ther are misunderstandings. It seems that pretty much everybody who replied to your question assumed that you were referring to the options menu of UIDocumentInteractionController. Instead, you meant the specific sheet of the Camera Roll shown in the screenshot. Probably this happened as you used wording that implies that this is only an example. I'm going to edit the question to make it more clear what you are looking for. But probably the question should be closed as duplicate anyway. – oefe Jan 10 '13 at 10:14
2

You need to subclass UIActivity to achieve this. Theres an example for Dropbox: https://github.com/goosoftware/GSDropboxActivity

artey
  • 1,243
  • 7
  • 10
  • 1
    I think the example you provided creates an in-app share dialog, but I want the add my app to the native share dialog – Roland Keesom Jan 04 '13 at 11:09
-1

Register your app as supporting the file types that you want to open and add the code to open them. See Document Interaction Programming Topics.

oefe
  • 19,298
  • 7
  • 47
  • 66
  • 1
    I have looked at the documentation, still no help. Please provide more information or examples that specifically add apps to the native share dialog (not the general dialog in other apps) – Roland Keesom Jan 07 '13 at 09:09