1.- (void)locationManager:(CLLocationManager *)manager
didChangeAuthorizationStatus:(CLAuthorizationStatus)status {
这个方法一调试,发现是这个错误kCLAuthorizationStatusNotDetermined,导致无法定位
解决办法:
1.调用locationManager requestAlwaysAuthorization
2.在info.plist里面添加一个key: NSLocationAlwaysUsageDescription,value就是对话框上想要询问的语句
http://www.tuicool.com/articles/6JNJnu