我正在尝试使用下面的教程在我的应用程序中导入和打开自定义文件
https://chariotsolutions.com/blog/post/importing-data-via-custom-file-types-in/
这就是我的信息plist的样子…
您需要实现指定的 UIApplicationDelegate AppDelegate.swift文件中的方法。
UIApplicationDelegate
func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any]) -> Bool { // handle the file here return true // or false based on whether you were successful or not }