Core Motion Framework Reference

Framework
/System/Library/Frameworks/CoreMotion.framework
Header file directories
/System/Library/Frameworks/CoreMotion.framework/Headers
Companion guide
Declared in
CMAccelerometer.h
CMAttitude.h
CMDeviceMotion.h
CMError.h
CMErrorDomain.h
CMGyro.h
CMLogItem.h
CMMagnetometer.h
CMMotionActivity.h
CMMotionActivityManager.h
CMMotionManager.h
CMStepCounter.h

The Core Motion framework lets your application receive motion data from device hardware and process that data. The framework supports accessing both raw and processed accelerometer data using block-based interfaces. For devices with a built-in gyroscope, you can retrieve the raw gyro data as well as processed data reflecting the attitude and rotation rates of the device. You can use both the accelerometer and gyro-based data for games or other apps that use motion as input or as a way to enhance the overall user experience.