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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software