IOS 8 open image in my app from another apps

后端 未结 2 1938
我寻月下人不归
我寻月下人不归 2021-01-15 20:17

I did some research but seems still no luck

when I added these xml in my info.plist

UTImportedTypeDeclarations
    

        
2条回答
  •  隐瞒了意图╮
    2021-01-15 20:55

    In my app, I don't use key UTImportedTypeDeclarations. You can remove it and try with below:

    CFBundleDocumentTypes
    
        
            CFBundleTypeName
            Image
            LSHandlerRank
            Alternate
            LSItemContentTypes
            
                public.image
            
        
        
            CFBundleTypeName
            OpenDocument Text
            LSHandlerRank
            Alternate
            LSItemContentTypes
            
                org.oasis.opendocument.text
            
        
        
            CFBundleTypeName
            GIF image
            LSHandlerRank
            Alternate
            LSItemContentTypes
            
                com.compuserve.gif
            
        
        
            CFBundleTypeName
            PNG image
            LSHandlerRank
            Alternate
            LSItemContentTypes
            
                public.png
            
        
        
            CFBundleTypeName
            TIFF image
            LSHandlerRank
            Alternate
            LSItemContentTypes
            
                public.tiff
            
        
        
            CFBundleTypeName
            JPEG image
            LSHandlerRank
            Alternate
            LSItemContentTypes
            
                public.jpeg
            
        
        
            CFBundleTypeName
            Rich Text
            LSHandlerRank
            Alternate
            LSItemContentTypes
            
                public.rtf
                com.apple.rtfd
                com.apple.flat-rtfd
            
        
        
            CFBundleTypeName
            Text
            LSHandlerRank
            Alternate
            LSItemContentTypes
            
                public.text
                public.plain-text
                public.utf8-plain-text
                public.utf16-external-plain-​text
                public.utf16-plain-text
                com.apple.traditional-mac-​plain-text
                public.source-code
                public.c-source
                public.objective-c-source
                public.c-plus-plus-source
                public.objective-c-plus-​plus-source
                public.c-header
                public.c-plus-plus-header
                com.sun.java-source
                public.script
                public.shell-script
            
        
        
            CFBundleTypeName
            PDF
            LSHandlerRank
            Alternate
            LSItemContentTypes
            
                com.adobe.pdf
            
        
    
    

提交回复
热议问题