-
-
Save bartolsthoorn/1156611 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
NSString *xmldata_s = [[NSString alloc] initWithContentsOfFile:dataFile encoding:NSUTF8StringEncoding error:nil]; | |
NSData *xmldata = [xmldata_s dataUsingEncoding: NSUTF8StringEncoding]; | |
NSMutableArray *pp = [NSPropertyListSerialization propertyListFromData: xmldata | |
mutabilityOption: NSPropertyListMutableContainers | |
format: NSPropertyListXMLFormat_v1_0 | |
errorDescription: nil]; | |
NSLog(@"Deserialized: %@", pp); | |
[[NSUserDefaults standardUserDefaults] setObject:pp forKey:kPagePoints]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment