日常mark 获取文件夹下所有文件名数组
2018-05-24 本文已影响0人
iOS劝退师
NSFileManager * fileManager = [NSFileManager defaultManager];
//文件夹路径
NSString *path = [NSString stringWithFormat:@"%@/Documents/Download",NSHomeDirectory()];
NSArray* tempFileList = [[NSArrayalloc]initWithArray:[fileManagercontentsOfDirectoryAtPath:patherror:nil]];