I have one NSArray
with NSMutableDictionaries
.Example testArray =[dict1,dict2,dict3,dict4].
Each dictionary in the array is something like
dict1= {
country = "INDIA";
flag = "A";
Currency = "Rupees";
rate = 10;
}
The all values are changeable. Sometimes
dict1 = {
country = "USA";
flag = "SA";
Currency = "Dollar";
rate = 50;
}
I need to update the value of the key rate of all dictionaries in the testArray if country = "INDIA"
and flag = "A"
and Currency = "Rupees"
and Do not need to change the value of the rate key all other dictionaries in side the testArray.