Instance Method

applicationShouldRequestHealthAuthorization:

Called when your app should ask the user for access to his or her HealthKit data.

Declaration

- (void)applicationShouldRequestHealthAuthorization:(UIApplication *)application;

Parameters

application

Your singleton app object.

Discussion

In your implementation of this method, call the handleAuthorizationForExtensionWithCompletion: method of the HKHealthStore object.