为权重创建一个HKSampleQuery (但不要执行它)
var wtSampleQ: HKSampleQuery!instantiating the query here and then executing repeatedly in observerUpdateHandler fails
wtSampleQ = HKSampleQueryin
在经过存根的executeQuery:中,我需要调用传递给它的HKSampleQuery实例的。这个块是私有的,所以我需要在运行时得到它。到目前为止,这就是我所拥有的: NSAssert([query isKindOfClass:HKSampleQuery.class], @"Mock executeQuery: not implemented yet for other query types than HKSampleQuery"
我非常希望执行HKSampleQuery的结果。但是,在执行查询之后,我总是无法获得结果。HKSampleSortIdentifierStartDate, ascending: false)
let stepSampleQuery: HKSampleQuery= HKSampleQuery(sampleType: (stepCountQty)!resultHandler of HKSampleQuery什么时候运行?在使用查询的结