Load array from plist in Documents Directory
Posted
by Florent
on Stack Overflow
See other posts from Stack Overflow
or by Florent
Published on 2010-05-01T23:07:47Z
Indexed on
2010/05/01
23:17 UTC
Read the original article
Hit count: 278
Hi all ! I use to load plist which are in my main Bundle (Ressource folder) into an array using :
NSString *path = [[[NSBundle mainBundle] resourcePath]stringByAppendingPathComponent:nomPlist ];
NSMutableArray *tmpQuestion = [[NSArray alloc] initWithContentsOfFile:path];
arrayQuestion = [ [NSArray alloc] initWithArray:tmpQuestion];
[tmpQuestion release];
since i decide to change the content of my plist and that main bundle is read only how can i make this array loading plist from the Documents directory of my app ? ?
thanks to all
© Stack Overflow or respective owner