Checking for the Open Menu

When you use a document interaction controller, the Options menu almost always provides valid menu choices, especially if you implement the Quick Look callbacks. You may or may not, however, have any “Open in...” options to work with. Those options depend on the file data you provide to the controller and the applications users install on their devices.

A no-open-options scenario happens when there are no applications installed on a device that support the file type you are working with. This may be caused by an obscure file type, but more often it occurs because the user has not yet purchased and installed a relevant application. This is a common occurrence when using the iOS simulator.

Always check whether to offer ...

Get The Core iOS Developer’s Cookbook, Fifth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.