我使用以下方法将我的主 Bundle(Ressource 文件夹)中的 plist 加载到数组中:
NSString *path = [[[NSBundle mainBundle] resourcePath]stringByAppendingPathComponent:nomPlist ];
NSMutableArray *tmpQuestion = [[NSArray alloc] initWithContentsOfFile:path];
arrayQuestion = [ [NSArray alloc] initWithArray:tmpQuestion];
[tmpQuestion release];
因为我决定更改我的 plist 的内容并且该主包是只读的,所以我怎样才能让这个数组从我的应用程序的 Documents 目录加载 plist??
谢谢大家