我想.ppt从 iPhone 邮件应用程序中读取文件。我已经使用这个SO question阅读了 PDF 文件。它工作正常,他们使用此代码在邮件应用程序中生成菜单:
<key>CFBundleDocumentTypes</key>
<array>
    <dict>
        <key>CFBundleTypeName</key>
        <string>PDF Document</string>
        <key>LSHandlerRank</key>
        <string>Alternate</string>
        <key>CFBundleTypeRole</key>
        <string>Viewer</string>
        <key>LSItemContentTypes</key>
        <array>
            <string>com.adobe.pdf</string>
        </array>
    </dict>
</array>
<key>UIFileSharingEnabled</key>
<true/>
<key>CFBundleDocumentTypes</key>
<array>
    <dict>
        <key>CFBundleTypeName</key>
        <string>Powerpoint</string>
        <key>LSHandlerRank</key>
        <string>Alternate</string>
        <key>CFBundleTypeRole</key>
        <string>Viewer</string>
        <key>LSItemContentTypes</key>
        <array>
            <string>com.microsoft.powerpoint.ppt</string>
        </array>
    </dict>
</array>
它工作正常。我用谷歌搜索了这个问题,但如果有人可以指导我如何.ppt从邮件附件中检测文件,那会很有帮助。