查询NSPredicate
let predicate2 = NSPredicate(format: "metadata.%K != YES", HKMetadataKeyWasUserEntered)
- 还有其他NSPredicate
let compoundPredicate = NSCompoundPredicate(type: .and, subpredicates: [predicate1, predicate2])
let predicate2 = NSPredicate(format: "metadata.%K != YES", HKMetadataKeyWasUserEntered)
let compoundPredicate = NSCompoundPredicate(type: .and, subpredicates: [predicate1, predicate2])
本文标题:healthkit 查询数据时过滤掉用户手动输入的数据
本文链接:https://www.haomeiwen.com/subject/hxbkhrtx.html
网友评论