I have a set of users in CoreData and an search field in my application. User has the properties firstname and name.
Currently I have a predicate like "user.name CONTAINS[c] %@ OR user.firstname CONTAINS[c] %@ "
This works until the user types a full name like "john smith". Even if he types "john sm" the John Smith-Object should be found.
What is the predicate to combine an array (IN) of search terms with CONTAINS?
See Question&Answers more detail:os