列出iPhone应用程序文档文件 [英] List iPhone application document files

查看:76
本文介绍了列出iPhone应用程序文档文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在iPhone应用程序的文档文件夹中获取文件的文件名?你怎么做到的?

Is there a way to get the filenames of the files in an iPhone application's document-folder? How do you do that?

推荐答案

NSFileManager *manager = [NSFileManager defaultManager];
    NSArray *fileList = [manager directoryContentsAtPath:documentsDirectory];
    for (NSString *s in fileList){
        NSLog(s);
    }

这篇关于列出iPhone应用程序文档文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆