UIDocumentBrowserViewController和UIDocumentPickerViewController有何区别?目前只使用UIDocumentPickerViewController是否足够?
这个问题有点老了,但在WWDC 2018 Session 216: Managing Documents In Your iOS App中,他们说主要区别是文档选择器(Document Picker)用于快速用户交互,而文档浏览器(Document Browser)则用作应用程序的主要文档浏览界面。
我建议观看该会议(大约在第10分钟)以获取更多细节。
UIDocumentBrowserViewController
很像 iPhone 上的“文件”应用程序,可以为您处理很多事情,例如 iCloud 同步和共享。https://developer.apple.com/documentation/uikit/uidocumentbrowserviewcontroller
UIDocumentPickerViewController
仅用于访问文件系统中的文件:https://developer.apple.com/documentation/uikit/uidocumentpickerviewcontroller