列出程序目录中的指定文件夹的所有文件 博客分类: IOS
程序员文章站
2024-02-04 15:39:28
...
NSFileManager *m = [NSFileManager defaultManager]; NSArray *fileList = [m directoryContentsAtPath:[[[[NSHomeDirectory() stringByAppendingPathComponent:@"Documents"] stringByAppendingPathComponent:@"163"] stringByAppendingPathComponent:@"songzi"] stringByAppendingPathComponent:@"pictures"]]; for (NSString *s in fileList){ NSLog(s); }