I have some audio files saved under the Documents directory. I just want to get those file names so that I can display them in a tableview. Right now I'm using
NSArray* files = [[NSFileManager defaultManager]
contentsOfDirectoryAtPath:DOCUMENTS_FOLDER error:&err];
How can I extract just the file names into an array using that returned NSArray* files Object?
在每个文件名上尝试使用-stringByDeletingPathExtension
。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.