Device Orientation
Hi,
We're using the orientationEvent (iOS API) to get notified when the device's orientation changes. However, we need to know the device's orientation more accurately. Is it possible to get the device's orientation in degrees, rather than the presets (MBLAccelerometerOrientationPortrait, MBLAccelerometerOrientationPortraitUpsideDown etc)?
Thanks,
Joe
This discussion has been closed.
Comments
Each x,y,z output from the accelerometer will vary with angle of the accelerometer. You could map out the positions you need to know about and record the x,y,z output at each point. There might be a sine/cosine wave that could also predict any angle from the output too, from reading I've done around this.