I am having NSMutableArray as below
How can I fetch only those data that have experience_id=1 or Update those data?
Is there any other way without looping?
(
{
"exp_achievements" = "get certificate for best employee";
"exp_achive_id" = 1;
"experience_id" = 1;
},
{
"exp_achievements" = "get certificate for best employee test";
"exp_achive_id" = 3;
"experience_id" = 1;
},
{
"exp_achievements" = test2;
"exp_achive_id" = 5;
"experience_id" = 3;
}
)
You can use NSPredicate to filter collections:
prints :
If your ‘experience_id’ value is string, change format to
@"experience_id.intValue == 1"