I have an IPhone application in which I have an `NSMutableArray` of dictionaries. When selecting each row of the table, I am deleting the dictionaries by using 

```
if (indexPath.row <[self.newmessagearrays count])
{
     [messagearrays removeObjectAtIndex:indexPath.row];
}

```

I have a scenario in which I want to remove all the dictionaries in which my "from id" key is the same, when the row is tapped. I tried like this, but with no effect:

```
 NSPredicate * pr = [NSPredicate predicateWithFormat:@"userid == %@",fromidstring];
[messagearrays filterUsingPredicate:pr];

```