How to open image in my ios app from another app?

11,508

Solution 1

Navigate to your project.

Select your app target and open "info" tab.

Now in "Document Types" add a document type with these settings:

Name: "whatever" or "image"

Types: public.image

Save this and compile the app. Now your app should show in open in... list from other apps.

Now follow apple Opening Supported File Types and continue your development

For a complete list of types follow this: Uniform Type Identifiers Reference

Solution 2

Yes you can open any file type in other supported application in your iOS device with "Open In" option.

Please follow this apple document for Document Interaction Programming Topics for iOS will be helpful to you.

1) You can also refer this tutorial In which explain with example of pdf file.

2) For customisation check this and other possible types found here. you can manage different types of document by adding UTI.

Share:
11,508
Muzammil
Author by

Muzammil

SOreadytohelp Working on iOS from last 7 years.

Updated on June 09, 2022

Comments

  • Muzammil
    Muzammil almost 2 years

    As Instagram and some another apps have option to open image in there app from any other app. I also want to do similar kind of thing for my iOS image processing app. So user can open there image from any app in my iPhone/iPad app. But I don't know how it is possible.