I have 3 core data entities.
MenuItems
, Items
, ItemLangs
.
All entities has iItemId
attribute. The user need to search using sItemName
which can be found in the ItemLangs
.
The UITableView contains array of MenuItems
.
I have tried filteredArrayUsingPredicate but my predicate is not right. Do I need to loop through the array of MenuItems
first before I can filter the array?
Here is my predicate:
NSPredicate *resultPredicate = [NSPredicate predicateWithFormat:@"sItemName LIKE %@", searchText];
May I know how can I use this to filter the array of MenuItems that I have?
Thank you!