【发布时间】:2014-10-01 20:39:29
【问题描述】:
我知道有这些方法,根据Apple HealthKit Docs
Working with HealthKit Objects
deleteObject:withCompletion:
saveObject:withCompletion:
saveObjects:withCompletion:
我正在寻找这样的东西:
deleteObjects:withCompletion:
或者一种从HKHealthStore 中删除多个对象而无需多次调用deleteObject:withCompletion: 的方法。
【问题讨论】:
-
为什么不用
t you want to call it multiple times? You could do it with a for loop, count the number of calls of the completion function, and once it reaches the number of objects you wanted to delete, call thereal`补全函数。
标签: ios ios8 healthkit hkhealthstore