Ios4 将iphone应用程序与kml和kmz google earth文件关联
我正在尝试编写一个iOS应用程序,它应该能够从google earth打开kml和kmz文件。 我在cfg文件中添加了以下行,但应该是错误的(当我尝试从另一个应用程序(即邮件)打开kml文件时,我看不到列出的应用程序):Ios4 将iphone应用程序与kml和kmz google earth文件关联,ios4,Ios4,我正在尝试编写一个iOS应用程序,它应该能够从google earth打开kml和kmz文件。 我在cfg文件中添加了以下行,但应该是错误的(当我尝试从另一个应用程序(即邮件)打开kml文件时,我看不到列出的应用程序): CbundleDocumentTypes CbundleTypeMimetypes application/vnd.googleearth.kml+xml CbundleTypeExtensions kml CbundleTypeName 谷歌Kml CbundleTypeRo
CbundleDocumentTypes
CbundleTypeMimetypes
application/vnd.googleearth.kml+xml
CbundleTypeExtensions
kml
CbundleTypeName
谷歌Kml
CbundleTypeRole
观众
伊斯汉德兰克
候补
请帮助我查找错误…将以下行添加到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>
CbundleDocumentTypes
CbundleTypeConfigiles
CbundleTypeName
谷歌地球KML文档
lsItemContentType
com.google.earth.kml
UTExportedTypeDeclarations
Uttypecommisto
public.xml
UTTypeDescription
谷歌地球KML文档
UTTypeIdentifier
com.google.earth.kml
UTTypeReferenceURL
http://earth.google.com/kml/
Uttypetag规范
com.apple.ostype
GKml
public.filename-extension
kml
public.mime-type
application/vnd.googleearth.kml+xml
如何读取xml文件显示代码副本-
<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>