标签: ios objective-c swift macos
如何获取支持macOS或iOS的所有类型的文件扩展名? 我正在静态地定义extensions,如下所示,但我不想这样做。 如果Apple引入了新的extension,我应该动态获得所有extensions。如何做到这一点?
macOS
iOS
extensions
extension
let fileExtensions = ["png", "jpg", "gif","jpeg","tif","mp4","mkv","mov", "zip" ,"txz"]
有什么建议吗?
预先感谢!