iOS支持App出现在分享打开pdf文件的列表

接下来是在openUrl里处理打开的操作,会给出选定文件的本地URL

func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any]) -> Bool
    {
        if url.isFileURL {
            //在这里处理这个文件就可以了
        }
    }
0 0 vote
Article Rating
Subscribe
提醒
guest
0 评论
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x