读取iOS的资源文件

 

// 获取Resources目录下的文件夹路径,  例如: Resources/FolderName

NSString *bundlePath = [[[NSBundle mainBundle] pathForResource:@"FolderName" ofType:nil] retain];

 

// 读取文件

NSString *FilePath = [bundlePath stringByAppendingPathComponent: @"FileName"];

posted on 2012-07-23 09:24  <懒洋洋>  阅读(984)  评论(0编辑  收藏  举报