Instance Method


Returns the earliest date permitted for samples.


- (NSDate *)earliestPermittedSampleDate;

Return Value

The earliest date that samples can use. You cannot save or query samples prior to this date.


Attempts to save samples earlier than this date fail with an HKErrorInvalidArgument error. Attempts to query samples before this date return samples after this date.

See Also

Working with HealthKit Objects

- deleteObject:withCompletion:

Deletes the specified object from the HealthKit store.

- deleteObjects:withCompletion:

Deletes the specified objects from the HealthKit store.

- deleteObjectsOfType:predicate:withCompletion:

Deletes objects saved by this application that match the provided type and predicate.

- saveObject:withCompletion:

Saves the provided object to the HealthKit store.

- saveObjects:withCompletion:

Saves an array of objects to the HealthKit store.