Like everyone else when they upgraded to iOS8 their CLLocationManager apps began to not work. I have read around the subject and think I have applied the fixes but the locationManager is still not being called. I have clearly missed something out....
#define IS_OS_8_OR_LATER ([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0)
- (void)viewDidLoad {
[super viewDidLoad];
locationManager = [[CLLocationManager alloc] init];
locationManager.desiredAccuracy = kCLLocationAccuracyBest;
locationManager.delegate = self;
locationManager.desiredAccuracy = kCLLocationAccuracyNearestTenMeters;
locationManager.distanceFilter = 10;
if(IS_OS_8_OR_LATER) {
[locationManager requestAlwaysAuthorization];
NSLog(@"iOS8");
}
[locationManager startUpdatingLocation]; }