Created
January 27, 2015 12:28
-
-
Save krzyspmac/0d93800e8214c31b1b24 to your computer and use it in GitHub Desktop.
Serialize and deserialize PLIST to/from NSDictionary
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// PLIST in NSData to NSDictionary | |
NSDictionary * result = [NSPropertyListSerialization propertyListWithData:data options:0 format:&format error:outError]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// PLIST in NSDictionary to NSData | |
NSData * data = [NSPropertyListSerialization dataWithPropertyList:dictionary format:NSPropertyListXMLFormat_v1_0 options:0 error:outError]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment