问题描述
我正在阅读本文档,了解如何在iOS应用上预览文件.
I was reading this documentation on how to preview a file on my iOS app.
是否可以检测用户选择了哪个应用程序?还是以某种方式知道他是否真的选择了任何选择?
Is there any to detect which app did the user choose? Or any way to kno if he actually tapped on any option?
我的问题:iBooks大文件(> 700mb).用户选择预览,然后点击右上角并选择在iBooks上打开.跳转到iBooks大约需要20到45秒.如果我知道用户轻按了任何应用程序,那么我至少可以显示负载或其他内容,以便他知道即将发生的事情.
My problem: iBooks large file (> 700mb). User chooses preview, then taps on the top right corner and chooses to open on iBooks. It takes between 20 to 45 seconds until it jumps to iBooks. If I know that the user tapped any app I could at least show a loading or whatever so he knows something is about to happen.
推荐答案
您可以使用UIDocumentInteractionControllerDelegate
方法来实现.下面是方法列表:
You can use UIDocumentInteractionControllerDelegate
methods to achieve this. Here are the list of methods:
这篇关于检测用户何时在应用程序中打开文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!