Skip to content

Instantly share code, notes, and snippets.

@max6363
Created May 8, 2018 18:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save max6363/435a28c95777356ce5b1cd208634f6e3 to your computer and use it in GitHub Desktop.
Save max6363/435a28c95777356ce5b1cd208634f6e3 to your computer and use it in GitHub Desktop.
#pragma mark - Action Events
/**
On connect button action
*/
- (IBAction)onConnectBtAction:(id)sender
{
// requesting to authorize for write-permission
[[HealthKitManager sharedInstance] requestToWriteDataWithFinishBlock:^(NSError *error) {
if (error) {
NSLog(@"error : %@",error);
} else {
}
}];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment