From the course: Advanced iOS App Development: Core Motion

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Test the pedometer

Test the pedometer - iOS Tutorial

From the course: Advanced iOS App Development: Core Motion

Start my 1-month free trial

Test the pedometer

- [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…

Contents