This is the error I am reciving when I select a value from my UITableView
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Can't do regex matching, reason: Can't open pattern U_ILLEGAL_ARGUMENT_ERROR (string Motron, pattern
libc++abi.dylib: terminate called throwing an exception
(lldb)
This is the first time I have had an error like this.. I am receiving it in my tableview method didSelectRowAtIndexPath on the second line of code shown below
// This predicate restricts the filterDataArray to the related values of the selected index
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"%K like %@",@"MASTER",cell.textLabel.text];
filterDataArray = [dataArrayOfDictionaries filteredArrayUsingPredicate:predicate];
I have logged out the array of dictionaries and this is what one of the dictionary values looks like.
{
HASM = 1;
ISM = 0;
ISV = 0;
MASTER = Merc;
MANURE = 96;
}
There are about 60 or 17 of these dictionaries in the array.
any help would be greatly appreciated.
I think you are not correctly using predicate in this case, try this