我有一个简单的 NSPredicate 没有给出正确的结果
NSPredicate *resultPredicate = [NSPredicate predicateWithFormat:@"SELF.data.squareFootage >= %@", filterSquareFootage];
filteredArray = [[filteredArray filteredArrayUsingPredicate:resultPredicate] mutableCopy];
奇怪的是,这适用于所有 6000>=250、7000>=250、8000>=6000。但是一旦 squareFootage==10000 10000>=任何较小的值的谓词为假。注意:squareFootage 的 10000 是使用 UISlider 获取的最大值。如果我将值减小到任何较小的值,则谓词给出 true 作为结果
我在这里遗漏了什么并且错误地使用了谓词吗?