Reputation: 5365
I know there are these methods, according to Apple HealthKit Docs
Working with HealthKit Objects
deleteObject:withCompletion:
saveObject:withCompletion:
saveObjects:withCompletion:
I'm looking for something like this:
deleteObjects:withCompletion:
Or a way to delete multiple objects from HKHealthStore
without calling deleteObject:withCompletion:
multiple times.
Upvotes: 0
Views: 448
Reputation: 7363
In iOS 8, the only way to delete multiple objects was to invoke deleteObject:withCompletion
multiple times. However, in iOS 9 there are two new methods available to delete multiple objects at a time. Try using deleteObjects:withCompletion:
or deleteObjectsOfType:predicate:withCompletion:
.
Upvotes: 1