[Solved] Accessing Coordinates in Plist – iOS [closed]

[ad_1]

NSMutableDictionary *root = [[NSMutableDictionary alloc] initWithContentsOfFile:path];
NSDictionary *routes = [root objectForKey: @"Routes"];
NSArray *cities = [routes allValues];
for (NSDictionary *city in cities) {
    NSArray *locations = [city allValues];
    for (NSDictionary *loc in locations) {
        NSDictionary *coord = [loc objectForKey:@"coordinate"];
        NSLog(@"%@",[coord objectForKey:@"latitude"]);

    }
}

3

[ad_2]

solved Accessing Coordinates in Plist – iOS [closed]