Advertisement

Using Core Motion to Add Physical Activity Data to Your Apps

  • Ahmed Bakir
Chapter

Abstract

In the last two chapters, you started with a drawing of a workout app and fleshed it out with a functioning user interface that could be used to record workout distance based on GPS readings and display the path on a map.Unfortunately, as you may have noticed by playing with the app, the locations only updated when the user moved and the app was suspectible to lost GPS signals, ocassionally producinginaccurate distance data. To make a more accurate and appropriate workout app, in this chapter, you will learn how to use Core Motion, Apple’s interface to the M-series motion coprocessor, the chip that provides the pedometer, accelerometer, and gyroscope features on the iPhone and Apple Watch.

Copyright information

© Ahmed Bakir 2018

Authors and Affiliations

  • Ahmed Bakir
    • 1
  1. 1.devAtelierTokyoJapan

Personalised recommendations