Join Steven Lipton for an in-depth discussion in this video Next steps, part of Advanced iOS App Development: Core Motion.
- [Instructor] We've covered most of the fundamentals for using Core Motion. I have some suggestions of where to go for here. For more on Core Motion, and the Core Motion API, check out Apple's reference guide for Core Motion. Also, a few chapters in the Event Handling Guide for UIKit Apps, covers Core Motion as well. Apple has several worldwide developer conference videos on Core Motion, one of the 2016 videos looks at Core Motion for fitness apps. If you're developing for fitness, also check out HealthKit, to get you started there's a HealthKit course right here, covering both watchOS, and iOS.
You'll learn about workouts, something for fitness apps, you might want to integrate with your detected motions. I've mentioned Core Locations several times. You'll find Apple's documentation on Core Location here. If you want data, like the pedometers for other apps, I'd specifically check out these. CL Location, and CL Location Distance, for distance and computing pace, and also look at the CL Heading Class, for a much better calibrated compass. For simplicity I've done all our examples in the foreground.
For production app, you might want to run some of the Core Motion processes in the background. For more on the basics of running in the background, and how to start setting that up, check out the Background Tasks video, from the Learning iOS 10 App Development course. Most of all play around with Core Motion, make a few prototypes, you can do that both in X-Code, and on iPad Playgrounds, if you want to take your iPad on an activity. There's a lot here, and as I've shown in this course, a lot of Core Motion requires motion on your part, to get good modeling of sensor reactions.
Build a few apps like the Fencing App, that record data. And you'll be able to get good data, to model the motions you want to detect.
- 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)