I have a search field and the text is fired against CoreData using:
produkt.name CONTAINS[cd] %@
but this crashes when the user types ', because the ' character messes up my query:
Terminating app due to uncaught exception NSInvalidArgumentException
Reason: Unable to parse the format string produkt.name CONTAINS[cd].
Isn't there an option in CoreData to handle that? I can't imagine that I have to escape it by myself?
'. Please show the code how you create the predicate. - Martin R