1 ) How to write to plist file ?
Ans : first you have to add plist file to your project.
and then code accordingly where you want to write into this file…
Code To Write File :
NSString *path = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@”Hello.plist”];
NSMutableDictionary* plistDict = [[NSMutableDictionary alloc] initWithContentsOfFile:path];
[plistDict setValue:@”10″ forKey:@”score”];
[plistDict writeToFile:path atomically: YES];
2 ) How to read From plist File ?
NSDictionary *dic = [NSDictionary dictionaryWithContentsOfFile:path];
NSLog(@”Diction read : %@”,dic);