Join Steven Lipton for an in-depth discussion in this video Pull pace and distance, part of Advanced iOS App Development: Core Motion.
- [Instructor] Besides steps,…there's other properties of pedometers.…I've selected two more to show on our pedometer,…average pace and distance.…Speed and distance measurements are a joint effort…of core motion and core location.…For best use of power,…the pedometer most often uses the distance…of a user's footstep, measured as an armswing.…Most of the time, the CM pedometer class…multiplies that distance from the number of steps.…Periodically, the pedometer uses locations…to recalibrate the step size,…without you doing any extra work.…
Let's see how to add these…from the pedometer class's properties.…Close the console.…First, we'll add a new property.…Var, pedometer, data…equals core motion pedometer data.…The CM pedometer data class…contains the movement stats for pedometers.…
Option click on the CM pedometer data class,…and click class reference.…You'll get a list of properties…that you could use in the pedometer.…All of it is of type NS number,…and all but number of steps are optional.…If the hardware or property is unavailable or nonexistent,…
- Reading Core Motion data
- Understanding Core Motion methods
- Creating a pedometer app
- Using pace and distance data from Core Motion
- Pushing and pulling device motion data
- Accessing the altitude sensors
- Working with the motion activity manager (CMMotionActivityManager)
Skill Level Advanced
iOS App Development: Accessibilitywith Kevin Favro2h 34m Intermediate
Advanced iOS Development: Working with APIswith Saul Mora1h 59m Intermediate
1. Core Motion Introduction
3. Device Motion
5. Recorded Data
Next steps1m 43s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.