Core Data, NSPredicate and to-many key

后端 未结 4 1240
别跟我提以往
别跟我提以往 2020-12-08 06:45

I have a Core Data model in which a Task entity includes an optional to-many relationship excludedOccurrences. One of the properties of excludedOccurrences is start, which i

4条回答
  •  無奈伤痛
    2020-12-08 07:24

    And in swift 2, something like:

    request.predicate = NSPredicate(format: " relationship.@count != 0")
    

提交回复
热议问题