1

I would like to add the application icon in the image "Open with" as like the below image :

enter image description here

I have implement the below code to add the "Open with" in the document but for the image it doesn't work.

<dict>
        <key>CFBundleTypeName</key>
        <string>Unknown File</string>
        <key>LSHandlerRank</key>
        <string>Alternate</string>
        <key>LSItemContentTypes</key>
        <array>
            <string>public.content </string>
        </array>
</dict>

Public.content is adding the "open with" in all the applications.

Public.image is not adding in the "Open with". As per Xcode 5 i have modified the document type in info as per the below screen shot.

Can please let me know what type of parameter should add the app icon in "Open with" ?

enter image description here

rmaddy
  • 314,917
  • 42
  • 532
  • 579
Manoj Arun S
  • 543
  • 5
  • 17
  • What does this have to do with the `xcode IDE`? – Popeye Apr 16 '14 at 11:44
  • please check this:- http://stackoverflow.com/questions/15991990/my-app-inside-imessage-uiactivityviewcontroller – Nitin Gohel Apr 16 '14 at 11:46
  • @Popeye In xcode IDE , Project Targets -> Info -> Document Types. I have did anything wrong here or is it possible to configure using Xcode ? – Manoj Arun S Apr 16 '14 at 11:47
  • @ManojArunS This has nothing to do with the `xcode IDE` just because you are using the `xcode IDE` doesn't mean you should use the tag, so please don't. – Popeye Apr 16 '14 at 12:59

2 Answers2

3

As far as I know, it is not possible to add your app to the share dialog of the Photos application (even if your app is correctly configured to support all kinds of image types or general content).

To get photos into your application, you have to go the other way around and use an UIImagePickerController or the ALAssetsLibrary to fetch the photos.

Martin R
  • 529,903
  • 94
  • 1,240
  • 1,382
  • Is there any apple document to clarify this ? How Facebook and Twitter icon added here ? Can you please advice ? – Manoj Arun S Apr 16 '14 at 12:02
  • 2
    @ManojArunS: Sorry, I did not find official documentation, it is the result of my own research. Facebook and Twitter support is "built-in" into iOS. I have have never seen *any* 3rd-party app in the photo share dialog. Dropbox does it the same way: There is a photo selection dialog in the Dropbox app. – Martin R Apr 16 '14 at 12:05
  • There are many more apps now showing up there including not "A" apps like easyJet and Upwork. – Rivera Apr 13 '20 at 20:48
-1

You can try this tutorial

and goto Sharing with UIActivityViewController it shows how to add Google+ app in UIActivityViewController, so you can add your app too.

Bharat
  • 2,987
  • 2
  • 32
  • 48