Xcode-beta (7A120f): UIDocumentInteractionController silently fails with Open In…
| Originator: | curtis.clifton | ||
| Number: | rdar://21404831 | Date Originated: | 16-Jun-2015 10:52 AM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Xcode-beta (7A120f) |
| Classification: | Other Bug | Reproducible: | Always |
Summary: UIDocumentInteractionController silently fails to Open In… when there are no apps on the device that can handle the given file type. There is no mechanism to detect this situation. Steps to Reproduce: 1. Build and run the attached app on a clean device. 2. In the picker control, choose Email, a file type for which there is an installed app (Notes) with which to open it. 3. Click the last button on the screen, "Share with UIDocumentInteractionController Open In…" 4. Notice that a sheet appears to let you choose an app. 5. Cancel. 6. In the picker control, choose Acorn, a file type for which there are no installed apps with which to open it. 7. Click the last button on the screen, "Share with UIDocumentInteractionController Open In…" Expected Results: A sheet appears telling the user that no apps are available Actual Results: Nothing happens Regression: Not a regression. This problem also existed in iOS 8. Notes: An (even better) alternative would be to provide an API on UIDocumentInteractionController so that we can query for the presence of any apps that can open a given file type. If we had that, then we could disable our "Open In…" button when tapping it would do nothing..
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!