2013-10-02 60 views

回答

0

您的应用需要注册它支持的文件类型。要注册文件类型,您的应用程序必须在其Info.plist属性列表文件中包含CFBundleDocumentTypes项。有关更多信息,请参阅Apple docs

<dict> 
    <key>CFBundleTypeName</key> 
    <string>My File Format</string> 
    <key>CFBundleTypeIconFiles</key> 
     <array> 
      <string>MySmallIcon.png</string> 
      <string>MyLargeIcon.png</string> 
     </array> 
    <key>LSItemContentTypes</key> 
     <array> 
      <string>com.example.myformat</string> 
     </array> 
    <key>LSHandlerRank</key> 
    <string>Owner</string> 
</dict> 
+0

这将使您的应用程序可从'UIDocumentInteractionController'获得。无法在UIActivityViewController中使您的应用程序可用,UIActivityViewController是使用UIActivity实例的地方。 – ccjensen

相关问题