1) Get data (i.e. NSMutableDictionary *
) from plist saved to disk:
NSMutableDictionary *dictionary = [NSPropertyListSerialization propertyListFromData:data mutabilityOption:NSPropertyListMutableContainers format:NULL errorDescription:&error];
2) Extract the required object from the dictionary.
//in your case NSNumber *tmpNumber = [[[dictionary objectForKey:@"One"] objectForKey:@"Two"] objectForKey:@"Three"]; // convert to int int NumberX = [tmpNumber intValue];
source share