Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get UIDocumentMenuViewController functionality in iOS 11?

Tags:

ios

ios11

In iOS 11 UIDocumentMenuViewController is marked as deprecated.

It is recommended to use UIDocumentPickerViewController, which existed before and has only a subset of UIDocumentMenuViewController functionality (in previous versions it was invoked by UIDocumentMenuViewController).

I can't see that something new was added to it so that it can augment removal of UIDocumentMenuViewController.

Somehow I doubt that iOS 11 removed such an important feature without offering some new way to do it, but I can't see it right now, so does anyone know something regarding this?

like image 729
Ivan Ičin Avatar asked Jul 23 '17 08:07

Ivan Ičin


1 Answers

In iOS 10 and previous the UIDocumentMenuViewController opens with Dropbox, Google Drive... then is necessary a Menu to you can add items dinamically as you need. In iOS 11 only one item Explore... is presented in Menu, then now, you can use a ActionSheet with your custom items and the UIDocumentPickerViewController.

like image 58
Narlei Moreira Avatar answered Sep 21 '22 12:09

Narlei Moreira