0
所以我有这个从数组中提取的值
NSLog(@"%@",[status valueForKey:@"coordinates"]);
这给了我这个
{
coordinates = (
"-91.17785719",
"30.41023765"
);
type = Point;
}
我怎能就这样提取的经度和纬度?
所以我有这个从数组中提取的值
NSLog(@"%@",[status valueForKey:@"coordinates"]);
这给了我这个
{
coordinates = (
"-91.17785719",
"30.41023765"
);
type = Point;
}
我怎能就这样提取的经度和纬度?
so status [@“coordinates”]是另一个带有另一个坐标键的字典吗?
如果是这样那就试试这个: status[@"coordinates"][@"coordinates"][0]
将使用1而不是0生成字符串“-91.17785719” 会得到另一个值
太好了!谢谢。 –
如果有效,你应该接受答案。 –
对不起!我打算将它标记为已接受,但它不会让我这样做。 –