Join Steven Lipton for an in-depth discussion in this video What you should know, part of Advanced iOS App Development: Core Motion.
- [Instructor] This is an intermediate course on iOS. I'll be assuming you have written a few applications, and know your way around in Swift and Xcode. Three concepts we'll be using frequently are timer loops, threads, and closures. I'll be discussing timers a bit more in detail a little later. If you're not familiar with these, don't fret. You'll get the idea as we go through the course. One thing I need to bring up now, about Core Motion. Core Motion does not work in the simulator. The simulator has no sensors, and you can't wave it around.
You'll need to use a live device to run any of the projects I'll be showing you. So I can show you differences in devices. I'll be using an iPhone 6s and a iPhone 5s, but you can use any device you have. Speaking of devices, there's one more important requirement in this course. You need to have your developer account set up and provisioning profiles for your devices squared away. Unlike other courses, we'll be doing a lot with the device hardware, and that requires you to manually enter your team provisioning profile information in any of the downloaded exercise files.
If you need to know more about provisioning profiles, check the Apple Distribution Quick Start documentation.
- 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)