說我有這個數組謂詞的feedDays
數組中:NSCompoundPredicate建設
<__NSArrayM 0x7ff7f3cd1040>(
feedDay == 1,
feedDay == 2,
feedDay == 4
)
我需要並將其與此statusPredicates
陣列:
<__NSArrayM 0x7ff7f3cd1070>(
is_neutered == 0 AND other_status == 0,
is_neutered == 0 AND other_status == 1,
is_neutered == 0 AND other_status == 2,
is_neutered == 0 AND other_status == 3,
)
我怎樣才能將這些成一個查詢?我假設我必須使用NSCompoundPredicate,但我無法弄清楚如何將它與兩個謂詞數組放在一起。
不錯的思想答案。 – Rog