I am trying to show compass on my screen
if ([CLLocationManager headingAvailable]) {
CLController.locMgr.headingFilter = 0.1;
[CLController.locMgr startUpdatingHeading];
}
it goes into method, and goes into method
- (void)locationManager:(CLLocationManager *)manager didUpdateHeading:(CLHeading *)newHeading {
if (newHeading.headingAccuracy < 0){
NSLog(@"heading accuracy < 0");
return;
}
// Use the true heading if it is valid.
CLLocationDirection direction = ((newHeading.trueHeading > 0) ?
newHeading.trueHeading : newHeading.magneticHeading);
[self.delegate headingUpdate:direction];
}
Earlier it was working fine, but dont know what happened now,
It's showing "heading accuracy < 0"..