Error: CLLocationManager headingAvailable
Posted
by Bubu4711
on Stack Overflow
See other posts from Stack Overflow
or by Bubu4711
Published on 2009-07-28T09:20:14Z
Indexed on
2010/04/15
19:03 UTC
Read the original article
Hit count: 422
iphone
I have the following code:
In my .h-Header-File:
#import <UIKit/UIKit.h>
#import <CoreLocation/CoreLocation.h>
@interface Compass : UIViewController <CLLocationManagerDelegate> {
[...]
CLLocationManager *locationManager;
}
[...]
@property(nonatomic, retain) CLLocationManager *locationManager;
@end
And my .m-File:
#import "[FILENAME].h"
[...]
@synthesize locationManager;
- (void)viewDidLoad {
[super viewDidLoad];
self.locationManager = [[[CLLocationManager alloc] init] autorelease];
if(locationManager.headingAvailable == NO) {
[...]
}
[...]
}
And I get the following error Message for "locationManager.headingAvailable": error:request for member 'headingAvailable' in something not a structure or union
I've added the CoreLocation framework to my app... Who can help me?
© Stack Overflow or respective owner