2013-04-27 95 views
3

我有我已经注册加入打开zip文件下面的info.plist中的应用:如何注册iOS应用程序以在iOS 6+的邮件应用程序中打开zip文件?

<dict> 
    <key>CFBundleTypeName</key> 
    <string>Zip archive</string> 
    <key>CFBundleTypeRole</key> 
    <string>Editor</string> 
    <key>LSHandlerRank</key> 
    <string>Alternate</string> 
    <key>LSItemContentTypes</key> 
    <array> 
     <string>com.pkware.zip-archive</string> 
    </array> 
</dict> 

在iOS 5中,这是足够的邮件应用程序将提供在打开zip文件我的应用程序在iOS 6中,它不是;该文件不使用我的应用程序的图标,我的应用程序不会出现在列表中。 (它使用的图标在邮件撰写看法,虽然)

我试图改变CFBundleTypeRole到浏览器,并LSHandlerRank为默认,甚至业主。我是否需要添加其他内容才能在iOS 6中使用它?或者他们刚刚删除了从邮件应用中打开zip文件的能力?

+0

我不知道为什么它下来投了反对票。 – 2013-04-27 15:18:22

+0

+1老兄,等着专家来回答。 – satheeshwaran 2013-04-27 15:53:30

+0

这个问题并不清楚 - 您是否按照描述添加了适当的“UTImportedTypeDeclarations”声明https://developer.apple.com/library/ios/#documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html#//apple_ref/doc/uid/TP40009251-SW9 – Mar0ux 2013-04-29 18:02:39

回答

0

以下是我什么工作在IOS 7

<dict> 
    <key>CFBundleTypeName</key> 
    <string>Zip archive</string> 
    <key>CFBundleTypeRole</key> 
    <string>Editor</string> 
    <key>LSItemContentTypes</key> 
    <array> 
    <string>com.pkware.zip-archive</string> 
    </array> 
    <key>UTTypeTagSpecification</key> 
    <dict> 
    <key>public.filename-extension</key> 
    <string>zip</string> 
    <key>public.mime-type</key> 
    <string>application/zip</string> 
    </dict> 
    <key>LSHandlerRank</key> 
    <string>Owner</string> 
</dict> 
相关问题