Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

chrono1081

macrumors G3
Original poster
Jan 26, 2008
8,453
4,156
Isla Nublar
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:

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?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.