Join Steven Lipton for an in-depth discussion in this video Test the pedometer, part of Advanced iOS App Development: Core Motion.
- [Instructor] You are ready to run our first pedometer…iteration.…Core motion only works on a real device not the stimulator…so we'll have a few preparation steps…that will apply to running apps for the…rest of this course.…Plug your device into Xcode to run.…You'll be moving around with your phone.…If you have a longer six foot sync cable…I'd suggest using that.…Since it is near impossible to see your phone…while you're moving it around…I'll show you a trick that might help out using QuickTime.…Open the QuickTime player and hit done.…
Go up to file…and select new movie recording.…In the little caret next to the record button,…select your device.…This time I'll select the iPhone.…Turn on your device and you'll see a mirrored…version of your phone.…Try to keep your phone in portrait.…Hit the lock orientation button on the control center.…If you wish you can record your tests…by hitting record in QuickTime.…
I'm going to add one more line of code for debugging…purposes to print the result on the console.…So underneath where we had self, stepsLabel, text,…
- 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?
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.