I’m a new to iOS.
NSData:
{
"results" : [
{
"formatted_address" : "Proyezd Voskresenskiye Vorota, 3, Moscow, Russia, 109012",
"geometry" : {
"location" : {
"lat" : 55.75622380,
"lng" : 37.61855850
}
I need only “formatted_address”, could you help me to make a NSString in which will be address?
Sorry for stupid question.
Your
NSDatais a JSON response, you need to create anNSDictionaryto be able to access specific portions of the data. AnNSDictionaryjust maps keys to values. To get the values you call– objectForKey:. In your case you have a dictionary as a value for the key “results”. So in your case: