2013-04-27 59 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> 
相關問題