Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法在 iPhone 应用程序的文档文件夹中获取文件的文件名?你是怎样做的?
NSFileManager *manager = [NSFileManager defaultManager]; NSArray *fileList = [manager directoryContentsAtPath:documentsDirectory]; for (NSString *s in fileList){ NSLog(s); }