首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏一“技”之长

    30分钟摸透iOS中谓词NSPredicate的来龙去脉

    dev开发文档 + (NSExpression *)expressionForFunction:(NSString *)name arguments:(NSArray *)parameters; 3.NSCompoundPredicate initWithType:(NSCompoundPredicateType)type subpredicates:(NSArray<NSPredicate *> *)subpredicates; //快速创建与运算 + (NSCompoundPredicate *)andPredicateWithSubpredicates:(NSArray<NSPredicate *> *)subpredicates; //快速创建或运算 + (NSCompoundPredicate *)orPredicateWithSubpredicates:(NSArray<NSPredicate *> *)subpredicates; //快速创建非运算 + (NSCompoundPredicate

    2K20发布于 2018-08-15
  • 来自专栏肘子的Swift记事本

    肘子的 Swift 周报 #022 | 忙碌的一周

    前一期内容|全部周报列表 原创 如何为 SwiftData 动态的构建复杂的谓词[3] Fatbobman( 东坡肘子 )[4] NSCompoundPredicate 让开发者能够将多个 NSPredicate 然而,在 Swift 重构的新 Foundation 框架中,缺失了与 NSCompoundPredicate 相对应的直接功能,这一变化对希望利用 SwiftData 构建应用的开发者造成了不小的挑战

    55010编辑于 2024-03-18
  • 来自专栏肘子的Swift记事本

    ObservableObject研究

    Constants.all { predicates.append(typePredicate) } predicate = NSCompoundPredicate

    3K60编辑于 2022-07-28
  • 来自专栏韩曙亮的移动开发专栏

    【IOS 开发】Objective-C Foundation 框架 -- 字符串 | 日期 | 对象复制 | NSArray | NSSet | NSDictionary | 谓词

    用于 搜索 或 过滤内存中的数据, 尤其是 搜索过滤集合中的数据; -- NSPredicate 子类 : NSPredicate 有 3 个子类, NSComparisonPredicate , NSCompoundPredicate 用于 搜索 或 过滤内存中的数据, 尤其是 搜索过滤集合中的数据; -- NSPredicate 子类 : NSPredicate 有 3 个子类, NSComparisonPredicate , NSCompoundPredicate

    1.8K20编辑于 2023-03-27
领券