I'm having NSArray like
array = [
{
"name": "Kavin",
"Age": 25,
"is_married": "true"
},
{
"name": "Kumar",
"Age": 25,
"is_married": "false"
}
]
In this in need to update/change array[0] "is_married" to false. Which means I need to update Kavin married status to false. How it is possible.
You can't update Value in NSArray, It is inmutable. But you can do something like this.
In Objective C
Here you get update array object.
In Swift
Array must be declare with var not let.
Here you get update array object