IOS8以后,需要在info.plist文件里面加NSLocationWhenInUseDescription或NSLocationAlwaysUsageDescription。
manger = [[CLLocationManager alloc] init];
manger.delegate = self;
manger.desiredAccuracy = kCLLocationAccuracyBest;
manger.distanceFilter = 100.0f;
[manger requestAlwaysAuthorization];
[manger startUpdatingLocation];
原文:http://blog.csdn.net/sunyuanyang625/article/details/44590289