iOS8で位置情報を取得する
http://iphone-app-developer.seesaa.net/article/405801453.html
iOS7以前のコードでは、下記のようにCLLocationManagerがnilであった場合にのみCLLocationManagerを初期化していたが、iOS8の場合、このコードでは2回目以降の測位時において、 - (void)locationManager:(CLLocationManager *)manager didChangeAuthorizationStatus:(CLAuthorizationStatus)status メソッドが呼び出されず、従ってCLLocationManagerの許認可状態が取得できないため、正しく測位がなされない。
if (nil == self.locationManager) {
self.locationManager = [[CLLocationManager alloc] init];
}
iOS8では、測位前は無条件にCLLocationManagerを初期化するようにすること。
self.locationManager = [[CLLocationManager alloc] init];
【CLLocation 現在位置情報の最新記事】

