开发者

Getting Direction from Compass

How do i get the Direction from compass when i rotate my device? i have use : - (void)locationManager:(CLLocationManager *)manager didUpdateHeading开发者_运维知识库:(CLHeading *)heading { } method but nothing is detected under heading tag?

i just want to get the direction (i.e) 90N , 180S etc..

need help Thank you.


There is no direction property, just the heading from north. You have to calculate the direction by yourself.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜