CoreData predicate: string property length?

后端 未结 3 1117
眼角桃花
眼角桃花 2020-12-20 16:51

Say if I have an entity Fragment, it has an attribute \'text\' which is a string, I want to query the list of Fragment whose text is o

3条回答
  •  长情又很酷
    2020-12-20 17:17

    I think that it's taking text.lengh as a relationship. Try to set a predicate only with position and then do a loop looking for text.length == 5.

提交回复
热议问题