如何使用NSPredicate过滤多个值的数组?

Hem*_*ang 2 objective-c nspredicate ios

我有以下数据数组:

NSArray *denoms = [NSArray arrayWithObjects:@"$1", @"$1.5", @"$2", @"c2.5", @"c10", @"$100", @"$51", nil];
Run Code Online (Sandbox Code Playgroud)

如果我尝试在数组中搜索以下字符串,那么它应该返回数组中的确切值(如果存在).

例如,@"$1,$100"结果应该是

$1
$100
Run Code Online (Sandbox Code Playgroud)

如何以这种方式过滤?

Hem*_*ang 5

NSPredicate *bPredicate = [NSPredicate predicateWithFormat:@"SELF IN %@", @"$1,$100"];
Run Code Online (Sandbox Code Playgroud)

我曾经在发布问题时得到解决方案.所以请保留以备将来参考.