NSPredicate unable to parse format string
问题 I can't see any problem with these line of code. Why can't it parse? [NSPredicate predicateWithFormat:@"(username CONTAINS[cd] %1$@) || " "(userId CONTAINS[cd] %1$@) || " "(firstname CONTAINS[cd] %1$@) || " "(lastname CONTAINS[cd] %1$@)", searchString]" The Log doesn't help either. Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Unable to parse the format string "(username CONTAINS[cd] %1$@) || (userId CONTAINS[cd] %1$@) || (firstname CONTAINS[cd] %1$@) ||