Top "Core-motion" questions

Core Motion is a framework within Apple's iOS SDK used to access all kind of motion sensor data.

Detecting if a user is moving in a car

NOTICE: This question was originally posted before Apple introduced motion-detection hardware and associated APIs in the iOS SDK. Answers to …

ios objective-c core-location core-motion apple-m7
Simple iPhone motion detect

I need to detect when the gyroscope / accelerometer is activated a certain amount. Basically to detect when there is movement …

iphone objective-c xcode core-motion
How do I retrieve accelerometer data correctly with Swift in iOS?

I am trying to record the data from the iPhone's accelerometer (my own iPhone 5s) and set a label on …

ios iphone swift core-motion
Detecting when someone begins walking using Core Motion and CMAccelerometer Data

I'm trying to detect three actions: when a user begins walking, jogging, or running. I then want to know when …

ios objective-c core-motion apple-m7
In iOS, what is the difference between the Magnetic Field values from the Core Location and Core Motion frameworks?

I have two ways of getting the magnetic fields (strength, x, y, and z) using the iOS device's magnetometer. 1) Core …

ios core-location core-motion magnetometer
CoreMotion updates in background state

With the M7 chip in the latest iOS devices one can get programmatically notified as the user goes from stationary …

ios core-location core-motion apple-m7
Motion Manager is not working in Swift

I am try to use motion manager in Swift but the log inside my update block never prints. var motionManager: …

ios swift core-motion cmmotionmanager
How to use CMMotionActivityManager and receive updates?

I want to create an app that can receive and process motion updates in order to understand if the user …

ios iphone core-motion apple-m7
Swift gyroscope yaw, pitch, roll

I'm doing a project for my school, for a programming subject. I'm working in Xcode in Swift. I would like …

ios iphone xcode swift core-motion
iOS - is Motion Activity Enabled in Settings > Privacy > Motion Activity

If an app requires access to Motion Activity data it asks the user at install. However if the user accidentally …

ios core-motion