我有以下无法从我的 NSDictionary 访问的键:
branches = (
{
city = "Las Vegas";
country = "United States";
countryIsoCode = USA;
distanceInKms = "19.35";
distanceInMiles = "12.02";
id = 16040146;
latitude = "36.145622";
longitude = "-115.299103";
name = "Las Vegas - 89117";
state = Nevada;
stateIsoCode = NV;
street = "9330 W Sahara Ave.";
telephone = "";
}
);
id = 106699;
logoUrl = "http://d2bvnbhf12ry1m.cloudfront.net/32636.png";
name = "Sumits Yoga";
},
我尝试使用 NSLog(@"%@", [dictionary allKeys]); 我只得到以下结果:
feedSources,
deals,
errorCode,
ack,
timestamp,
owners,
version,
categories,
currentCount,
merchants,
errorMessage,
referencePoint,
queryString,
totalCount
)
其中没有一个是我需要的键和值,例如:“纬度”和“经度”。我将如何访问这些值并将它们转换为 NSString 和 NSNumber 以便我可以存储它们?