1、名字以“jiazhu”开头:
NSPredicate*pre = [NSPredicate predicateWithFormat:@"name BEGINSWITH %@",@"jiazhu"];
2、名字以“jiazhu”结尾:
NSPredicate*pre = [NSPredicate predicateWithFormat:@"name ENDSWITH %@",@"jiazhu"];
3、名字包含“jiazhu”
NSPredicate*pre = [NSPredicate predicateWithFormat:@"name CONTAINS %@",@"jiazhu"];
4、like
NSPredicate*pre = [NSPredicate predicateWithFormat:@"name like %@",@"*jiazhu*"];