NSPredicate 过滤功能

NSPredicate *resultPredicate = [NSPredicate predicateWithFormat:@"self contains[cd] %@", iconName];

        

        if ([_maIcons filteredArrayUsingPredicate:resultPredicate].count == 0) {

            [_maIcons addObject:iconName];

        }

posted @ 2016-05-06 14:20  NOIP/NOI辅导  Views(159)  Comments(0Edit  收藏  举报