1

With Android, there is the notion of rotation vector sensor to get the full orientation of a device in space.

Is there an equivalent with iOS? I do not want to have the screen orientation, but the full orientation of the device.

Vincent Hiribarren
  • 5,254
  • 2
  • 41
  • 65

2 Answers2

3

On iOS CoreMotion, gives you access to all the device orientation sensors. Magnetometer and Gyroscope readings can combined manually or automatically to give you a running picture of the device orientation.

David Berry
  • 40,941
  • 12
  • 84
  • 95
0

There is.. infact there are a few ways to do it, all rather simple:

see android documentation: http://developer.android.com/guide/topics/sensors/sensors_motion.html

and particularly:

http://developer.android.com/guide/topics/sensors/sensors_position.html

erik
  • 4,946
  • 13
  • 70
  • 120