NSPredicate 官方文档(中文版)
来源:互联网 发布:怎么开农村淘宝服务站 编辑:程序博客网 时间:2024/05/18 02:26
概览
简单的比较, 比如 grade== "7" 或者 firstNamelike "Shaffiq"
不区分大小写和音调的查找, 比如 namecontains[cd] "itroen"
逻辑运算, 比如 (firstName like "Mark") OR (lastName like "Adderley")
In OS X v10.5 and later, you can create €œbetween€ predicates such as datebetween {$YESTERDAY, $TOMORROW}.
group.name like "work*"
ALL children.age > 12
ANY children.age > 12
任务
[plain] view plaincopy
+ predicateWithFormat:
+ predicateWithFormat:argumentArray:
+ predicateWithFormat:arguments:
– predicateWithSubstitutionVariables:
+ predicateWithValue:
+ predicateWithBlock:
[plain] view plaincopy
– evaluateWithObject:
– evaluateWithObject:substitutionVariables:
[plain] view plaincopy
– predicateFormat
类方法
1.predicateWithBlock:
+ (NSPredicate *)predicateWithBlock:(BOOL (^)(id evaluatedObject, NSDictionary *bindings))block;
参数
block
返回值
特殊考虑
有效性
声明于
2.predicateWithFormat:
+ (NSPredicate *)predicateWithFormat:(NSString *)format, ...
参数
返回值
讨论
有效性
相关的代码例子
声明于
3.predicateWithFormat:argumentArray:
+ (NSPredicate *)predicateWithFormat:(NSString *)predicateFormat argumentArray:(NSArray*)arguments
参数
返回值
讨论
有效性
声明于
4.predicateWithFormat:arguments:
参数
返回值
讨论
有效性
声明于
5.predicateWithValue:
+ (NSPredicate *)predicateWithValue:(BOOL)value
参数
返回值
有效性
声明于
实例方法
1.evaluateWithObject:
- (BOOL)evaluateWithObject:(id)object
参数
返回值
有效性
声明于
2.evaluateWithObject:substitutionVariables:
- (BOOL)evaluateWithObject:(id)object substitutionVariables:(NSDictionary *)variables
参数
返回值
讨论
有效性
声明于
3.predicateFormat
- (NSString *)predicateFormat
返回值
特殊考虑
有效性
声明于
4.predicateWithSubstitutionVariables:
- (NSPredicate *)predicateWithSubstitutionVariables:(NSDictionary *)variables
参数
返回值
讨论
有效性
声明于
0 0
- NSPredicate 官方文档(中文版)
- NSPredicate官方文档翻译
- NSPredicate官方文档翻译
- TestNG官方文档中文版
- HBase 官方文档中文版
- HBase 官方文档中文版
- mapreduce官方文档中文版
- Fragments (官方文档中文版)
- HBase 官方文档-中文版
- Hbase官方文档中文版
- Hbase官方文档中文版
- akka 官方文档中文版
- TensorFlow 官方文档中文版
- spark官方文档中文版
- HBase 官方文档中文版
- TensorFlow 官方文档中文版
- TensorFlow 官方文档中文版
- TensorFlow 官方文档中文版
- {A} + {B}
- Predicate Format String Syntax
- mappingResources,annotatedClasses(映射)
- 使用Automake 创建和使用静态库
- CCScale9Sprite点九图的制作和使用
- NSPredicate 官方文档(中文版)
- 第八届湘潭大学程序设计比赛A题
- IBM TSM 6.3学习笔记(1)
- AOJ-AHU-OJ-351 求最值之差
- SQL总结(一)SQL的分类
- HBase中数据的多版本特性潜在的意外
- 黑马程序员--------------JAVA基础(一)
- Struts2系列——struts2的result
- Installing teamviewer 9 on 64-bit Ubuntu 13.10