繁体   English   中英

Objective-C / iOS共享文档以上传到我的应用中

[英]Objective-C / iOS share documents to upload in my app

我正在做类似Dropbox的应用,我需要知道这两张照片之间的区别:

我想将所选文件上传到服务器中。

我要我的应用程序出现在这里:

照片1

但它出现在这里:

在此处输入图片说明

如何与第一张照片中的其他应用程序一起显示我的应用程序? (PruebaMenu是我的应用程序)

编辑

这是我的文档类型: 照片3

EDIT2 Info.plist代码:

<key>CFBundleDocumentTypes</key>
<array>
    <dict>
        <key>CFBundleTypeIconFiles</key>
        <array>
            <string>approv</string>
            <string>logoapp</string>
        </array>
        <key>CFBundleTypeName</key>
        <string>Prueba</string>
        <key>CFBundleTypeRole</key>
        <string>Viewer</string>
        <key>LSHandlerRank</key>
        <string>Owner</string>
        <key>LSItemContentTypes</key>
        <array>
            <string>com.adobe.pdf</string>
            <string>public.image</string>
            <string>public.video</string>
        </array>
    </dict>
</array>

为了使您的应用程序显示在第一张照片中,您的应用程序必须注册其支持的文件类型。 应用程序的plist必须包含CFBundleDocumentTypes键,并且在此数组中声明应用程序支持的不同文件类型。 请参阅此Apple文档以获取更多信息: https : //developer.apple.com/library/ios/documentation/filemanagement/conceptual/documentinteraction_topicsforios/Articles/RegisteringtheFileTypesYourAppSupports.html

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM