Skip to content

Instantly share code, notes, and snippets.

@krzyspmac
Created January 27, 2015 12:28
Show Gist options
  • Save krzyspmac/0d93800e8214c31b1b24 to your computer and use it in GitHub Desktop.
Save krzyspmac/0d93800e8214c31b1b24 to your computer and use it in GitHub Desktop.
Serialize and deserialize PLIST to/from NSDictionary
// PLIST in NSData to NSDictionary
NSDictionary * result = [NSPropertyListSerialization propertyListWithData:data options:0 format:&format error:outError];
// 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