I have an NSMutableArray(contactsArray) with contents as below.
{({ContactID = ""; RecordID = 45; Number = "";},
{ContactID = 134;RecordID = 47;Number = PNAPYOEMZH;})}
I have an independent variable say x. I need to check whether x is equal to the ContactID in the array
You could do something like this:
or change the predicate to: