NSPredicate *predicate;
predicate = [NSPredicate predicateWithFormat:@"SELF CONTAINS 'aaa'"];
BOOL result = [predicate evaluateWithObject:@"anystringaaaggg"];
Result is true. But I need to create an NSString that will contain “aaa”. How can I do this?
Doesn’t work that way.
For example, how could you create a string that equals “Steve” OR “Novikoff”? Yet you can create a predicate to check for the same condition.