views:

130

answers:

2

i am developing an application in which i have to record compass reading. which is there in new iPhone 3GS. so i have to record compass reading and use it in my application. I dont want to create my own compass. is there any way by which i can do that?

+1  A: 

http://developer.apple.com/iphone/library/documentation/CoreLocation/Reference/CLHeading%5FClass/Reference/Reference.html

Azeem.Butt
I used the code given on apples site but it gives values according to magnetic north. howevr values recorded by this are not matching to values recorded by compass. how to record values accordig to true north.and values recorded are in radians or degrees?
amy
A: 

thanks NSD for that link.I have one more issue. How to play particular frequency which create a beep sound? how to play it using audio player or is it possible? I searched it on google but didn't get anything useful. can you help? and thaks again.

amy