iOS 获得指定文件夹下的指定格式文件

这个容易忘记,然后只能用些自己写的长代码代替了。。。。这里做个备忘

主要用到NSFileManager的 contentsOfDirectoryAtPath:error: 和 NSArray的 pathsMatchingExtensions:

原文地址:https://www.cnblogs.com/breezemist/p/3482586.html