In which format does HKObserverQuery
gets data?
There is no NSArray
or NSDictionary
to store data then how to get.
I am putting the query put not able to get all data, anyone please help?
HKObserverQuery *query =
[[HKObserverQuery alloc]
initWithSampleType:object
predicate:Predicate
updateHandler:^(HKObserverQuery *query,
HKObserverQueryCompletionHandler completionHandler,
NSError *error) {
[HKUnit unitFromString:@"count/min"]];
if (error) {
// Perform Proper Error Handling Here...
NSLog(@"*** An error occured while setting up the stepCount observer. %@ ***",
error.localizedDescription);
abort();
}
else{
NSLog(@"@%",query);
}
}];