Swift iOS 11中UIDocumentMenuViewController的替代方案

Swift iOS 11中UIDocumentMenuViewController的替代方案,swift,ios11,uidocumentpickerviewcontroller,Swift,Ios11,Uidocumentpickerviewcontroller,是否可以在iOS 11中实现UIDocumentMenuViewController(iOS 11中不推荐)的外观?我在iOS 11中找到的最接近的是UIDocumentPickerViewController,但它不允许我显示文档提供程序的菜单,而是以模式显示最近使用的文档提供程序的全屏 如果UIDocumentMenuViewController没有相同的替代方案,那么是否至少有一种方法可以强制UIDocumentPickerViewController直接进入“位置”而不是显示最近使用的文

是否可以在iOS 11中实现UIDocumentMenuViewController(iOS 11中不推荐)的外观?我在iOS 11中找到的最接近的是UIDocumentPickerViewController,但它不允许我显示文档提供程序的菜单,而是以模式显示最近使用的文档提供程序的全屏

如果UIDocumentMenuViewController没有相同的替代方案,那么是否至少有一种方法可以强制UIDocumentPickerViewController直接进入“位置”而不是显示最近使用的文档提供程序

所需结果:

您可以将UIAlertController与UIAlertControllerStyle.ActionSheet一起使用。我有Xamarin.ios代码

var okCancelAlertController = UIAlertController.Create("", "Choose", 
UIAlertControllerStyle.ActionSheet);
//Add Actions
okCancelAlertController.AddAction(UIAlertAction.Create("iCloud", UIAlertActionStyle.Default, (s) => { }));
okCancelAlertController.AddAction(UIAlertAction.Create("Photos", UIAlertActionStyle.Default, (s) => { }));
okCancelAlertController.AddAction(UIAlertAction.Create("Cancel", UIAlertActionStyle.Cancel, (s) => { }));
UIApplication.SharedApplication.KeyWindow.RootViewController.PresentViewController(okCancelAlertController, true, null);

iOS 11中的
UIDocumenPickerViewController
消除了对
UIDocumentMenuViewController
的需要。用户可以从选择器视图中选择一个位置,这样菜单就没有iOS 10中那么有用了。据我所知,这是不可能的。苹果似乎正在推出由
UIDocumenPickerViewController
提供的新用户界面。谢谢@rmaddy。你能让UIDocumentPickerViewController直接进入“浏览”选项卡而不是进入“最近”选项卡吗?谢谢@mattsven。有没有想过通过文档提供商进行迭代,创建一个自定义文档选择器,或者定制苹果提供的文档选择器是可行的?谢谢@mattsven。这很有道理,但我想确保在将其标记为不可行之前我尝试了所有方法,而您的反馈确实有助于确认我的假设。我很感激。