0
針對NSNumber值使用NSPredicate進行篩選的正確語法是什麼?IOS/Objective-C:針對NSNumber的NSPredicate
如果對一個變量進行安全檢查,我相信我能做到:
predicateWithFormat:@"userID == %d", [stdUserNumber intValue]];
在這種情況下,我想覈對絕對數字無論是對平等或不平等如下:
[predicateWithFormat:@"userid >=1"];
和也...
[predicateWithFormat:@"valid ==1"];//where 1 is an NSNumber representing a boolean attribute in the model
這個過濾器是否如預期的那樣?