如何在iOS 11中获取UIDocumentMenuViewController功能?

Iva*_*čin 8 ios ios11

在iOS 11 UIDocumentMenuViewController中标记为已弃用.

建议使用UIDocumentPickerViewController以前存在的并且只有一部分UIDocumentMenuViewController功能(在以前的版本中它被调用UIDocumentMenuViewController).

我无法看到它添加了一些新东西,以便它可以增加删除UIDocumentMenuViewController.

不知怎的,我怀疑iOS 11在没有提供一些新方法的情况下删除了这么重要的功能,但我现在看不到它,所以有人知道这件事吗?

Nar*_*ira 5

在 iOS 10 和之前的版本中,可以UIDocumentMenuViewController使用 Dropbox、Google Drive 来打开......然后Menu你可以根据需要动态地添加项目。在 iOS 11 中Explore...,菜单中只显示一个项目,然后现在,您可以将 ActionSheet 与您的自定义项目和UIDocumentPickerViewController.