presentOpenInMenu(from:animated:)
Displays a menu for opening the document and anchors that menu to the specified bar button item.
Declaration
func presentOpenInMenu(from item: UIBarButtonItem, animated: Bool) -> BoolParameters
Return Value
true if this method was able to display the menu or false if it was not.
Discussion
This method is similar to the presentOptionsMenu(from:animated:) method, but presents a menu restricted to a list of apps capable of opening the current document. This determination is made based on the document type (as indicated by the uti property) and on the document types supported by the installed apps. To support one or more document types, an app must register those types in its Info.plist file using the CFBundleDocumentTypes key.
If there are no registered apps that support opening the document, the document interaction controller does not display a menu.
This method displays the menu asynchronously. The document interaction controller dismisses the menu automatically when the user selects an appropriate app. You can also dismiss it programmatically using the dismissMenu(animated:) method.