gpt4 book ai didi

ios4 - 为 kml 和 kmz 谷歌地球文件关联一个 iphone 应用程序

转载 作者:行者123 更新时间:2023-12-05 01:37:18 26 4
gpt4 key购买 nike

我正在尝试编写一个 iOS 应用程序,它应该能够从谷歌地球打开 kml 和 kmz 文件。我在 cfg 文件中添加了以下行,但应该是错误的(当我尝试从另一个应用程序(即邮件)打开 kml 文件时,我看不到列出我的应用程序):

    <key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeMIMETypes</key>
<array>
<string>application/vnd.google-earth.kml+xml</string>
</array>
<key>CFBundleTypeExtensions</key>
<array>
<string>kml</string>
</array>
<key>CFBundleTypeName</key>
<string>Google Kml</string>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>LSHandlerRank</key>
<string>Alternate</string>
</dict>
</array>

请帮我找出错误...

最佳答案

将这些行添加到 Info.plist:

<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeIconFiles</key>
<array/>
<key>CFBundleTypeName</key>
<string>Google Earth KML Document</string>
<key>LSItemContentTypes</key>
<array>
<string>com.google.earth.kml</string>
</array>
</dict>
</array>
<key>UTExportedTypeDeclarations</key>
<array>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.xml</string>
</array>
<key>UTTypeDescription</key>
<string>Google Earth KML Document</string>
<key>UTTypeIdentifier</key>
<string>com.google.earth.kml</string>
<key>UTTypeReferenceURL</key>
<string>http://earth.google.com/kml/</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>com.apple.ostype</key>
<string>GKml</string>
<key>public.filename-extension</key>
<array>
<string>kml</string>
</array>
<key>public.mime-type</key>
<string>application/vnd.google-earth.kml+xml</string>
</dict>
</dict>
</array>

关于ios4 - 为 kml 和 kmz 谷歌地球文件关联一个 iphone 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8928351/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com