I understand I can for instance write a value to a .plist file as such
NSString *filePath = [[NSBundle mainBundle] pathForResource:@"stored" ofType:@"plist"];
NSString *comment = @"this is a comment";
[comment writeToFile:filePath atomically:YES];
But If i had for say an Array inside my .plist (gameArray) and I'd like to white comment
into a particular index of my array i.e. gameArray[4]
; how would I do this ?
allow me to clarify
- I have a plist:
stored.plist
- inside my plist there is an array
gameArray
- i would like to update specific indexes of
gameArray
inside the plist is this possible ?