NSPredicate * predicate = [NSPredicate predicateWithFormat:@"ms_date like %@ * ",num];
过滤数组里的内容,数组调用filterusingpredicate
代码段 如下:
其中 @“SELF contains[c]”含义呢,
就是假如你的数组里有内容含有Y这个字母,那么你一输入Y,所有数组里包含Y的词条都会显示。
NSPredicate * predicate = [NSPredicate predicateWithFormat:@"ms_date like %@ * ",num];
过滤数组里的内容,数组调用filterusingpredicate
代码段 如下:
其中 @“SELF contains[c]”含义呢,
就是假如你的数组里有内容含有Y这个字母,那么你一输入Y,所有数组里包含Y的词条都会显示。