Using NSPredicate to determine if a string equals another string

前端 未结 2 953
一整个雨季
一整个雨季 2020-12-16 10:11

I have an NSArray of CalEvents returned with the [CalCalendarStore eventPredicateWithStartDate] method. From the events returned, I am trying to ke

2条回答
  •  醉梦人生
    2020-12-16 10:46

    Try [NSPredicate predicateWithFormat:@"title ==[c] 'on call'"];

    (The [c] makes the equality comparison case-insensitive.)

提交回复
热议问题