Getting the “Open in…” overlay in iOS via SDK

依然范特西╮ 提交于 2020-01-04 02:45:28

问题


I have an iOS app which offers the opportunity to open documents in other applications via UIDocumentInteractionController. Neither presentOpenInMenuFromRect nor presentOpenInMenuFromBarButtonItem does the Safari-style overlay menu of "Open in..." "Open in iBooks" that you get when viewing a PDF (for instance) and those appear to be the only ways to ask for a menu. My "Open In" menu does work, it's just not the UI experience I am trying to offer. Is this functionality in a private framework or am I missing something more obvious?

Edit: I suspect it's a toolbar with 2 buttons, and I just can't have it unless I build one myself, having looked harder. Still looking for confirmation or denial.


回答1:


Sorry, it's denial... It's not possible under the official SDK to:

  • Get a list of applications that open a certain file.
  • Open a certain file on a certain application (other than the URL schemes registered).


来源:https://stackoverflow.com/questions/9560517/getting-the-open-in-overlay-in-ios-via-sdk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!