I want to make the function "Open in .." in my iOS application.
Is there a way to check if any application on this device is associated with the file extension I want to provide?
If there are no applications on the current device to open a file with a file extension that the UIDocumentInteractionController will not be displayed after clicking the "Open in .." button, but I do not want to show this button in this case.
So, the question is: how to check if any application on the device can open any file with a specific extension?
Update:
For example, the UIDocumentInteractionController has the NSArray icons property.
It contains images of all applications that can open a file with my extension. But if there are no applications, it displays an image of an empty application.
Therefore, I can not check it, for example, using docInteractionController.icons.count == 0 . I am looking for other tricks.
Thanks in advance.
BS
source share