NSPredicate 的保留字区分大小写吗?

are NSPredicate's reserved words case sensitive?

来自苹果文档:

这两个谓词给我相同的结果:

大写的 SELF:

NSPredicate *predicate = [NSPredicate predicateWithFormat: @"SELF.userType != %@", typeStr];

小写的自我:

NSPredicate *predicate = [NSPredicate predicateWithFormat: @"self.userType != %@", typeStr];

保留字是否区分大小写?

Predicate Format String Syntax "The predicate string parser is whitespace insensitive, case insensitive with respect to keywords, and supports nested parenthetical expressions."