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.
精彩评论