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

后端 未结 2 1386
孤城傲影
孤城傲影 2020-12-30 14:41

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 use

相关标签:
2条回答
  • 2020-12-30 14:56

    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.

    0 讨论(0)
  • 2020-12-30 14:59

    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

    0 讨论(0)
提交回复
热议问题