Adding key-value pairs in a plist file programmatically preserving the existing order of the file
Is there any way by which I can add the new key-value pairs to an existing plist file.I also wants to preserve the order of the keys and values in the existing file.I am facing problem in preserving the order if dealing with the plist in dictionaries.Plist file is stored on the disk and al开发者_如何学编程l the keys and values are of type "String" except the root which is NSDictionary.
To do this, you will need to write your own plist parser and generator. For full flexibility, you’ll need to write it from scratch, not relying on an XML parser, or at least not a general-purpose one.
精彩评论