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

后端 未结 2 1413
孤城傲影
孤城傲影 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: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

提交回复
热议问题