[英]Open file with specific extension from Safari in my iOS app
用於打開mime類型為“plain / text”和“gwe”擴展名的文件,例如“myfile.gwe”
在您的info.plist中:
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeIconFiles</key>
<array/>
<key>CFBundleTypeName</key>
<string>public.gwe</string>
<key>LSItemContentTypes</key>
<array>
<string>public.gwe</string>
</array>
</dict>
</array>
<key>UTExportedTypeDeclarations</key>
<array>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.text</string>
</array>
<key>UTTypeDescription</key>
<string>gwe custom file</string>
<key>UTTypeIdentifier</key>
<string>public.gwe</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>gwe</string>
</array>
</dict>
</dict>
</array>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.