Heading Silver Challenge


#1

okay I am working on the newest Xcode and trying to work through book so the storyboards are messing me up and i’m not sure if this is correct answer to challenge. I read the other answers and mine is really different.

[color=#BF40FF]Added this line to the initWithNib line:[/color]
[color=#BF40FF] [locationManager startUpdatingHeading]; [/color]
}
return self;
}
[color=#BF40FF]Added this to the locationManager method
[/color]
- (void)locationManager:(CLLocationManager *)manager
didUpdateToLocation:(CLLocation *)newLocation
fromLocation:(CLLocation *)oldLocation
[color=#BF40FF] heading:(CLHeading *)heading
{
NSLog(@"%@ heading %@", newLocation, heading);
}[/color]

[color=#BF40FF]Couldn’t find another delegate that i would have to include because it was on CLLocationManagerDelegate. Will this work?[/color]