この形式のオブジェクトを含む配列を読み取るにはどうすればよいですか:
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];