Swift 2 Blueprints by Cecil Costa

Swift 2 Blueprints by Cecil Costa

Author:Cecil Costa
Language: eng
Format: epub
Publisher: Packt Publishing


Once you have instantiated the sets, you can request permission to use them. Note that, after receiving the reply from requestAuthorizationToShareTypes, we would have to execute the code in the main queue:

healthKitStore.requestAuthorizationToShareTypes(typesToShare, readTypes: typesToRead) { success, error in M{ if let error = error { self.displayError(error.localizedDescription) }else if success { for button in self.buttons { button.enabled = true } } else { self.displayError("Authorization not successful") } } } } // end viewDidAppear } // end class



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.