Swipe to navigate through the chapters of this book
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.
Please log in to get access to this content
To get access to this content you need the following product:
- Using Core Motion to Add Physical Activity Data to Your Apps
- Sequence number
- Chapter number
- Chapter 3