How to create a .Plist that contains key ==> Value?
In my application I need to read data from plist also I need to know how to create the plist that contains the key-value data. And is there a be开发者_如何学Gotter way to read info (key-value)?
The easiest way to read plist data is to use NSDictionary:
NSMutableDictionary *myDict = [NSMutableDictionary dictionaryWithContentsOfFile:path];
Similarly you can write it out using:
[myDict writeToFile:path atomically:NO];
精彩评论