// 获取Resources目录下的文件夹路径, 例如: Resources/FolderName
NSString *bundlePath = [[[NSBundle mainBundle] pathForResource:@"FolderName" ofType:nil] retain];
// 读取文件
NSString *FilePath = [bundlePath stringByAppendingPathComponent: @"FileName"];
// 获取Resources目录下的文件夹路径, 例如: Resources/FolderName
NSString *bundlePath = [[[NSBundle mainBundle] pathForResource:@"FolderName" ofType:nil] retain];
// 读取文件
NSString *FilePath = [bundlePath stringByAppendingPathComponent: @"FileName"];
转载于:https://www.cnblogs.com/yy99/archive/2012/07/23/2604459.html