如何在 iPhone 中使用 nsdocuments 目录进行下载

2023-12-06

我有一个带有下载选项的iPhone应用程序,并且我使用nsdocument目录路径进行下载。但是下载后我如何才能访问iPhone中的文档路径。我需要安装任何其他应用程序来访问文件吗?如果是,请告诉我该应用程序。谢谢。


//NSDownloadsDirectory = 下载文件夹

//NSDocumentDirectory = 文档文件夹



    NSArray *pathArr = NSSearchPathForDirectoriesInDomains(NSDownloadsDirectory , NSUserDomainMask, YES);
    NSString *downloadsDir = [paths objectAtIndex:0];
  
Store the content to this path(you can create a folder in it too.). And also fetch the files stored in this folder, by enumerating to the files in this directory
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

如何在 iPhone 中使用 nsdocuments 目录进行下载 的相关文章

随机推荐