daily pastebin goal
53%
SHARE
TWEET

Untitled

a guest Sep 14th, 2018 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let healthKitManager = HealthKitManager()
  2.  
  3. func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
  4.     // Override point for customization after application launch.
  5.  
  6.     healthKitManager.requestAccessWithCompletion() { success, error in
  7.         if success{ print("HealthKit access granted") }
  8.         else { print("Error requesting access to HealthKit: \(error!)") }
  9.     }
  10. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top