Code:
NSString *filePath = [[NSBundle mainBundle]pathForResource:@"ScoreBoard" ofType:@"plist"];
NSMutableDictionary* plistDict = [[NSMutableDictionary alloc] initWithContentsOfFile:filePath];
[plistDict setObject:[NSNumber numberWithBool:YES] forKey:@"enableScore"];
/* Backup
[plistDict setValue:@"YES" forKey:@"enableScore"]; */
[plistDict writeToFile:filePath atomically: NO];
I am using this but i want to be able to take
Code:
[plistDict setObject:[NSNumber numberWithBool:YES] forKey:@"enableScore"];
and write it into a dictionary that is already located in the plist.
Please Help