iPhone CoreData - How to fetch managed objects, and sorting them ignoring case?

前端 未结 4 460
我寻月下人不归
我寻月下人不归 2020-12-24 12:23

Does anyone know how to fetch some results sorting them alphabetically but ignoring case?

4条回答
  •  眼角桃花
    2020-12-24 12:30

    Check out the NSPredicate programming guide, but basically use [c] to ignore case:

    @"firstName BEGINSWITH[c] $FIRST_NAME"
    

提交回复
热议问题