So I have this code:
Interface:
@interface MyViewController : UIViewController <CLLocationManagerDelegate>{
with a variable:
CLLocationManager *locationManager;
@property (nonatomic, retain) CLLocationManager *locationManager;
Then i synthesized it in the implementation and added the following code.
locationManager=[[CLLocationManager alloc] init];
locationManager.desiredAccuracy = kCLLocationAccuracyBest;
locationManager.delegate=self;
//Start the compass updates.
[locationManager startUpdatingHeading];
- (void)locationManager

CLLocationManager *)manager didUpdateHeading

CLHeading *)newHeading
{
NSLog(@"New magnetic heading: %f", newHeading.magneticHeading);
NSLog(@"New true heading: %f", newHeading.trueHeading);
}
But for some reason the NSLOG isn't showing in the console, although I'm pressing the Okay button when asking me if I allow it.
Any ideas?