NSPredicate 模糊查询
来源:互联网 发布:网络水军兼职 编辑:程序博客网 时间:2024/06/15 00:56
NSArray *array =@[@[@"jim",@"afd"],@[@"tom",@"adfdaf"],@[@"tom",@"sss"],@[@"jim",@"daf"]];
NSPredicate *pre = [NSPredicatepredicateWithBlock:^BOOL(id evaluatedObject,NSDictionary *bindings) {
NSArray * arr = (NSArray * )evaluatedObject;
return [arr[0]isEqualToString:@"tom"];
}];
NSArray *aray = [arrayfilteredArrayUsingPredicate:pre];
NSLog(@"%@",aray);
2017-12-1815:39:37.104820+0800 NCITShow[500:54174] (
(
tom,
adfdaf
),
(
tom,
sss
)
)
- NSPredicate 模糊、精确、查询
- NSPredicate 模糊、精确、查询
- NSPredicate 模糊、精确、查询
- NSPredicate模糊、精确、查询
- NSPredicate模糊查询
- NSPredicate 模糊查询
- NSPredicate的本地模糊查询
- NSPredicate(谓词) 模糊、精确、查询
- iOS NSPredicate 模糊、精确、查询
- ios 学习之 NSPredicate 模糊、精确、查询
- ios 学习之 NSPredicate 模糊、精确、查询
- ios 学习之 NSPredicate 模糊、精确、查询
- ios 学习之 NSPredicate 模糊、精确、查询
- ios 学习之 NSPredicate 模糊、精确、查询
- ios 学习之 NSPredicate 模糊、精确、查询
- iOS 学习之 NSPredicate 模糊、精确、查询
- ios 学习之 NSPredicate 模糊、精确、查询
- ios 学习之 NSPredicate 模糊、精确、查询
- ScrollView(滚动条)
- springMvc常用注解-@ModelAttribute
- java----类得加载过程
- 如何输出python中list的维度
- 玩转Eclipse
- NSPredicate 模糊查询
- UIswitch
- 精心收集的 48 个 JavaScript 代码片段,仅需 30 秒就可理解
- 性能怪兽!一个7倍于GoogleNet/AlexNet GPU的加速卡诞生了!
- fragment
- spring3笔记3-DI注入
- 自动定时刷新页面
- Netty学习笔记13——一些问题记录处理
- 移动硬盘 使用驱动器X:中的光盘之前需要将其格式化 的 解决办法