title: HKAnchoredObjectQuery deleted objects is empty in iOS 9.0 but works fine with iOS 9.2.1. Is this a update in iOS 9.2?
body: <p>HealthKit's HKAnchoredObjectQuery is not returning deleted objects in iOS 9.0. Even if i delete a object and then add a object the deleted objects array is always empty (except on the first launch of app). </p>
  
  <p>But the same code works fine with iOS 9.2.1. The deleted objects are returned whenever a object is added to health app and observer query is fired.</p>
  
  <p>Is this some new update in iOS 9.2.1 and the bug with deleted objects is resolved in this version?</p>
  
  <p>I could not find any Apple documentation confirming this.</p>
  
  <p>Edit:
  The code firing the query is </p>
  
  <pre><code>NSPredicate* predicate = [HKQuery predicateForSamplesWithStartDate: [NSDate dateWithTimeIntervalSinceNow:-172800.0]                                                                endDate:nil                                                                 options:0];
  
   HKAnchoredObjectQuery *query =
      [[HKAnchoredObjectQuery alloc]
       initWithType:sampleType
       predicate:predicate
       anchor:anchor
       limit:HKObjectQueryNoLimit
       resultsHandler:^(HKAnchoredObjectQuery * _Nonnull query,
                        NSArray&lt;__kindof HKSample *&gt; * _Nullable sampleObjects,
                        NSArray&lt;HKDeletedObject *&gt; * _Nullable deletedObjects,
                        HKQueryAnchor * _Nullable newAnchor,
                        NSError * _Nullable error) {
  }];
  </code></pre>