如何读取包含此格式对象的数组:
Second pair: {
latitude = "26.499023";
longitude = "42.326061";
}
??
编辑:
NO..this is the way I come up with that...
NSArray *MaparrayLongitude = [dataMap objectForKey:@"longitude"];
NSArray *MaparrayLatitude = [dataMap objectForKey:@"latitude"];
if (MaparrayLongitude.count != MaparrayLatitude.count) {
//Error: Unequal number of longitude/latitude values
} else {
NSMutableArray *pairs = [NSMutableArray array];
for (int i = 0; i < MaparrayLongitude.count; i++) {
NSDictionary *pair = [NSDictionary dictionaryWithObjectsAndKeys:
[MaparrayLongitude objectAtIndex:i], @"longitude",
[MaparrayLatitude objectAtIndex:i], @"latitude", nil];
[pairs addObject:pair];