iOS_44_导入第3方APP内的文件_UTI
生活随笔
收集整理的這篇文章主要介紹了
iOS_44_导入第3方APP内的文件_UTI
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
Uniform Type Identifier(UTI)
將第3方APP中的文件,使用自家app打開查看
實質是:將第3方的app中的文件? 復制到了 自家app的doc/Inbox文件夾內
在info.plist加入
<key>CFBundleDocumentTypes</key><array><dict><key>CFBundleTypeIconFiles</key><array><string>icon_22x29</string><string>icon_44x58</string><string>icon_64x64</string><string>icon_320x320</string></array><key>CFBundleTypeName</key><string>allFiles</string><key>LSHandlerRank</key><string>Owner</string><key>LSItemContentTypes</key><array><string>public.data</string></array></dict></array>public.data代表 自家app可以打開處理任意文件
四張不同格式的png圖片 不知道用到沒有
附:
apple官方info.plist中各字段含義
https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/uid/20001431-101685
總結
以上是生活随笔為你收集整理的iOS_44_导入第3方APP内的文件_UTI的全部內容,希望文章能夠幫你解決所遇到的問題。