Accessing Health Information Using HealthKit
For the last few years, Apple has provided two core frameworks that have sped up the time to develop iOS health apps considerably: HealthKit and Core Motion. HealthKit provides a central repository for all apps to sync health data and Core Motion provides access to the iPhone’s accelerometer and pedometer, allowing you to retrieve limited health information about a user without external accessories.
HealthKit was a baffling surprise to everyone when it was announced; no one could figure out why Apple would “compete” with its partners by building a framework to do the same thing they had all been doing for years, tracking information. As time progressed, HealthKit’s ...