在我的分析class
“挑战”中,我有一个column
“状态”,其中包含Number
0-5之间的值。
当我从Parse加载数据时,我只希望在“状态”列中包含数字1或2的对象。
query.whereKey("status", containsAllObjectsInArray: [1,2])
这给了我0个对象的结果。虽然这给了我正确的答案
query.whereKey("status", lessThan: 2)
但我不想使用此行,因为我将需要不同的数字(仅示例3和5)。
我究竟做错了什么?
尝试使用containedIn:
query.whereKey("status", containedIn: [1,2])
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句