NSpredicate not working if string starts with #

Posted by Jude on Stack Overflow See other posts from Stack Overflow or by Jude
Published on 2010-05-28T07:29:59Z Indexed on 2010/05/28 7:31 UTC
Read the original article Hit count: 220

Filed under:

Hi,

NSString *newValue = @"#xyz";

but the following searchPreidate is not finding that. pls let me know how to solve this

self.searchPredicate = [NSPredicate predicateWithFormat:@"(value contains[c] %@) OR (title contains[c] %@)",newValue, newValue];

© Stack Overflow or respective owner

Related posts about cocoa