摘要: 有两种方式:一:NSXMLParserUtility.h:#import <Foundation/Foundation.h>@interface Utility : NSObject {}//获取文件在设备上的绝对路径+ (NSString *) pathForResource:(NSString*)resourcepath;@endUtility.m :#import "Utility.h"@implementation Utility+ (NSString*) pathForResource:(NSString*)resourcepath{ NSBundle 阅读全文