iOS让App出现在打开方式中

  • 在Info.plist中添加下面的Tag
CFBundleDocumentTypes
    
        
            CFBundleTypeIconFiles
            
            CFBundleTypeName
            SupportedFiles
            CFBundleTypeRole
            Editor
            LSHandlerRank
            Owner
            LSItemContentTypes
            
                com.microsoft.excel.xls
                org.openxmlformats.spreadsheetml.sheet
                public.comma-separated-values-text
            
        
    

LSSupportsOpeningDocumentsInPlace
    
  • LSItemContentTypes
    1.com.microsoft.excel.xls:Excel xls
    2.org.openxmlformats.spreadsheetml.sheet: Excel xlsx
    3.public.comma-separated-values-text: Excel csv

  • LSSupportsOpeningDocumentsInPlace
    1.true:显示在App中打开
    2.false:显示拷贝到App

你可能感兴趣的:(iOS让App出现在打开方式中)