In earlier tutorials we have focussed on reading information with HealthKit. There are a number of queries that can be used to request information in a variety of ways. In this tutorial we will work on saving information with HealthKit.
Saving data to the health store with HealthKit follows a general procedure which has just 4 steps.
The first step is to find the identifier for the type of data you want to store. For this tutorial we will save body mass. In a later tutorial we will look at saving workouts, and other more complex data types such as step counts where there are more than just 1 reading per day. [Read more…]