iOS 11文件应用程序:如何包括应用程序包中的文件 [英] iOS 11 Files App: How to include files from app bundle
问题描述
我今年在WWDC上观看了主题演讲,对此我感到非常兴奋iOS 11中增加了新功能.Apple对App Store中的游戏给予了高度重视,iPad历史上最大的升级非常令人兴奋.但是对我而言,最让我烦恼的是,iOS 11将首次为iOS带来文件系统的一些便利.他们自然将其称为Files
应用.新用户从Microsoft产品获得与Windows相同的Windows体验似乎向前迈出了一大步.
I watched the keynote this year at WWDC and am excited about all the new feature additions being brought to iOS 11. The high importance Apple has placed on games in the App Store and the biggest upgrades in the history of iPad is very exciting. But what was most thriling to me was that iOS 11 will bring for the first time some sibilance of a file system to iOS. They call it the Files
app, naturally. It seems a big step forward in the new user's getting that same windows-like experience from Microsoft products into iOS.
我的问题是,作为一名当前正在开发高度文档化项目的开发人员,我将如何向前看我的设计以处理此功能?我现在知道,如果您使用Application supports iTunes file sharing
键在.plist
中启用此功能,则Apple允许您的应用通过iTunes向用户公开应用沙箱的documents
目录.对于Files
应用程序,这将以相同的方式工作吗?意思是,Files
应用程序是否会公开设备上所有在.plist
中将Application supports iTunes file sharing
键设置为YES
的应用程序中的所有documents
文件夹?
My question though as a developer currently in development of a project that is heavily document oriented, how am I to be forward looking in my design as so to handle this capability? I know now that Apple allows your app to expose the documents
directory of your application sandbox to the user via iTunes if you enable this capability in your .plist
using the Application supports iTunes file sharing
key. Will this work the same way for the Files
app? Meaning, will the Files
app expose the documents
folder of all the apps on your device that have the Application supports iTunes file sharing
key set to YES
in the app's .plist
?
推荐答案
只需将Supports Document Browser
(UISupportsDocumentBrowser
)键添加到Info.plist并将其设置为YES.
Just add Supports Document Browser
(UISupportsDocumentBrowser
) key to Info.plist and set it to YES.
如果其中包含文件,则文档文件夹将显示在On My iPhone
部分中.
The documents folder will be shown in On My iPhone
section if there are files inside.
这篇关于iOS 11文件应用程序:如何包括应用程序包中的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!