简体   繁体   中英

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

I'm doing an app like Dropbox and I need to know the difference between those two photos:

I want to upload the selected file in my server.

I want to my app appear here:

照片1

But it appears here:

在此处输入图片说明

How can I do to show my app with another apps like in the first photo?? (PruebaMenu is my app)

EDIT

This is my Documents Types: 照片3

EDIT2 Info.plist code:

<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>

To get your app to show up in the first photo, your app must register for the type of files it supports. Your app's plist must contain a CFBundleDocumentTypes key and inside this array you declare the different file types that your app supports. See this Apple doc for more information: https://developer.apple.com/library/ios/documentation/filemanagement/conceptual/documentinteraction_topicsforios/Articles/RegisteringtheFileTypesYourAppSupports.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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