开发者

Getting Direction from Compass

开发者 https://www.devze.com 2022-12-20 22:12 出处:网络
How do i get the Direction from compass when i rotate my device? i have use : - (void)locationManager:(CLLocationManager *)manager didUpdateHeading开发者_运维知识库:(CLHeading *)heading {

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

精彩评论

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