简体   繁体   English

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

[英]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: 我正在做类似Dropbox的应用,我需要知道这两张照片之间的区别:

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) (PruebaMenu是我的应用程序)

EDIT 编辑

This is my Documents Types: 这是我的文档类型: 照片3

EDIT2 Info.plist code: 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>

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. 应用程序的plist必须包含CFBundleDocumentTypes键,并且在此数组中声明应用程序支持的不同文件类型。 See this Apple doc for more information: https://developer.apple.com/library/ios/documentation/filemanagement/conceptual/documentinteraction_topicsforios/Articles/RegisteringtheFileTypesYourAppSupports.html 请参阅此Apple文档以获取更多信息: https : //developer.apple.com/library/ios/documentation/filemanagement/conceptual/documentinteraction_topicsforios/Articles/RegisteringtheFileTypesYourAppSupports.html

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

相关问题 如何在 iOS (Objective-C) 中分享 Facebook Messenger 应用程序的链接? - How to share link to Facebook Messenger app in iOS (Objective-C)? 从我的iOS应用程序将Objective-C分享图片到Instagram - objective-c share image to Instagram from my iOS application 如何使用Objective-C在IOS应用中上传.xml文件? - How to upload .xml file in IOS app using Objective-C? 在Objective-C iOS中将内容上传到FTP - Upload things to a FTP in Objective-C iOS iOS:在Objective-c中带有接近传感器的应用 - IOS: app with proximity sensor in Objective-c iOS应用内购买:Objective-c - iOS In App Purchases: Objective-c 使用 Storyboard 调味 Objective-C iOS 应用程序 - Flavouring Objective-C iOS app with Storyboard 使用Objective-C和ASIFormDataRequest for iOS将带有一些参数的照片上传到Ruby-on-rails Web应用程序 - Upload a photo with some parameters to a Ruby-on-rails web app using Objective-C and an ASIFormDataRequest for iOS 如何在ios中共享图像,消息和URL(objective-c) - How can share images, messages and urls in ios (objective-c) IOS/Objective-C:用于自定义与 UIActivityViewController 共享消息的 UIActivityItemSource 协议 - IOS/Objective-C: UIActivityItemSource Protocol for customizing share messages with UIActivityViewController
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM