I am trying to divide a NSMutableDictionary into two NSMutableArrays on comparing one keyValue in NSMutableDictionary,
example:My NSMutableDictionary
[
{
"0": "87",
"1": "13270690451",
"2": "Delhi night's",
"3": "2106",
"4": ":)",
"5": "Kunwar",
"6": "28.601736",
"7": "77.159178",
"8": "16.107459108715",
"timeleft": "87",
"imageurl": "13270690451",
"beep": "Delhi night's",
"beepid": "2106",
"beepdescription": ":)",
"username": "Kunwar",
"Lat": "28.601736",
"long": "77.159178",
"distance": "16.107459108715"
},
{
"0": "87",
"1": "13278710651",
"2": "Delhi IT hub",
"3": "2145",
"4": "LPT certification centre",
"5": "Kunwar",
"6": "28.491764",
"7": "77.082712",
"8": "2005.6281723630008",
"timeleft": "87",
"imageurl": "13278710651",
"beep": "Delhi IT hub",
"beepid": "2145",
"beepdescription": "LPT certification centre",
"username": "Kunwar",
"Lat": "28.491764",
"long": "77.082712",
"distance": "2005.6281723630008"
}
]
i want make two seperate mutablearray if “distance”: “2005.6281723630008” in dictionary is less than 500 add to mutable array1 other wise add to mutable array2
Something like this?