x2_
x2_

Reputation: 349

magnetic heading on iPod Touch 4g

[CLLocationManager headingAvailable] returns NO on my iPod Touch 4, but I have an app on the device that determines magnetic heading with location services turned off.
Is there any other way to get the heading?

Upvotes: 1

Views: 383

Answers (1)

x2_
x2_

Reputation: 349

Found! CoreMotion is the answer.
Heading on iPod 4 is not available through CLLocationManager, but we still can read magnetometer data using CoreMotion framework

Upvotes: 2

Related Questions