xcode 如何使用 iPhone sdk 在 iPhone 应用程序中启用文件共享
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/13985217/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to enable file sharing in iPhone app using iPhone sdk
提问by josh
Possible Duplicate:
How to enable file sharing for my app?
可能重复:
如何为我的应用启用文件共享?
How can i enable file sharing functionality in iPhone app. I am very curious about this to know because when i connect my iPhone with iTunes then it show me three apps. One is Skype and second one is bump and third one is my own app. My app is about augmented reality and show some videos and images on specific markers, also i did social sharing and APNS work and flurry integration that all major working in my app and I did nothing which enable this functionality but why and how this happen. Kindly let me know. This will be great for me. Thanks.
如何在 iPhone 应用程序中启用文件共享功能。我对此非常好奇,因为当我将 iPhone 与 iTunes 连接时,它会显示三个应用程序。一个是Skype,第二个是bump,第三个是我自己的应用程序。我的应用程序是关于增强现实的,并在特定标记上显示一些视频和图像,我还做了社交共享和 APNS 工作以及我的应用程序中所有主要工作的快速集成,我没有做任何启用此功能的工作,但为什么会发生这种情况以及如何发生。请让我知道。这对我来说会很棒。谢谢。
回答by Sumanth
You should Enable UIFileSharingEnabled in the application plist file, Keep this value to YES
like this then your application can share data of your application documents
你应该在应用程序的 plist 文件中启用 UIFileSharingEnabled,保持这个值YES
像这样你的应用程序可以共享你的应用程序文档的数据
回答by TieDad
There is an option in {projectname}-Info.plist named "Application supports iTunes file sharing".
{projectname}-Info.plist 中有一个名为“应用程序支持 iTunes 文件共享”的选项。
回答by rickster
Your app will appear in iTunes File Sharing if the UIFileSharingEnabled
key is set in its Info.plist. (This appears in the Xcode editor as "Application supports iTunes file sharing ".) If this is enabled in your project and you're not sure how, either you accidentally clicked something for this in Xcode, or you're working from a project template in which it's pre-set.
如果UIFileSharingEnabled
在 Info.plist 中设置了密钥,您的应用程序将出现在 iTunes 文件共享中。(这在 Xcode 编辑器中显示为“应用程序支持 iTunes 文件共享”。)如果在您的项目中启用了此功能,而您不确定如何启用,则可能是您不小心在 Xcode 中为此单击了某些内容,或者您正在从项目中工作在其中预先设置的模板。