任何人都知道为什么这会在运行时出现“无法解析格式字符串”错误?
[wordListArray filterUsingPredicate:[NSPredicate predicateWithFormat:@"pinyin contains[cd] %@ OR pinyin contains[cd] %@ OR BEGINSWITH[cd] %@", [NSString stringWithFormat:@" %@1", searchTerm], [NSString stringWithFormat:@" %@2", searchTerm], searchTerm]];
出于某种原因,当我做复杂的谓词(即那些带有 OR 的谓词)时,我会得到这个。我认为 nspredicate 应该能够处理这个?