Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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];
Add Comment
Please, Sign In to add comment