Hi guys,
I'm working through the Big Nerd Ranch iOS Programming Book (again!) and I wanted to implement a check in a part of the code. Unfortunately that check appears to be deprecated and I can't find any alternative in the documentation (if its there and I miss it, please let me know where I can find it so I know where to hunt next time).
The class method I am trying to use is part of CLLocationManager and the method is as follows:
+(BOOL)headingAvailable
I would like to implement this check:
However there doesn't appear to be any alternate methods to do this. I'm assuming maybe because all future devices will be able to use headings but thats just a guess.
Does anyone have any ideas on how to implement this check?
I'm working through the Big Nerd Ranch iOS Programming Book (again!) and I wanted to implement a check in a part of the code. Unfortunately that check appears to be deprecated and I can't find any alternative in the documentation (if its there and I miss it, please let me know where I can find it so I know where to hunt next time).
The class method I am trying to use is part of CLLocationManager and the method is as follows:
+(BOOL)headingAvailable
I would like to implement this check:
Code:
//Is heading info available?
if([locationManager headingAvailable])
{
//Tell manager to update heading
[locationManager startUpdatingHeading];
}
However there doesn't appear to be any alternate methods to do this. I'm assuming maybe because all future devices will be able to use headings but thats just a guess.
Does anyone have any ideas on how to implement this check?