1
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"%K like %@",
attributeName, attributeValue];
爲什麼不
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"%K == %@",
attributeName, attributeValue];
什麼==之間的差異,像 – 2011-05-10 13:30:13
哦,我明白了,==檢查引用平等,這是愚蠢的。 LIKE是否匹配不精確的匹配? – 2011-05-10 13:30:51
例如,「瑪麗亞」就像「瑪麗」返回true?這就是我困惑的原因 – 2011-05-10 13:31:16