Ios 未显示位置访问权限警报,并且未在xcode 6.4中调用CLLocation manager委托方法。请告知
我在目标C课上做过CLLocationmager。这里,我的代码是Ios 未显示位置访问权限警报,并且未在xcode 6.4中调用CLLocation manager委托方法。请告知,ios,core-location,cllocationmanager,Ios,Core Location,Cllocationmanager,我在目标C课上做过CLLocationmager。这里,我的代码是 CLLocationManager *loc = [[CLLocationManager alloc]init]; [loc setDelegate:self]; [loc requestWhenInUseAuthorization]; [loc requestAlwaysAuthorization]; loc.desiredAccuracy = kCLLocationAccuracyBest; loc.distanceFil
CLLocationManager *loc = [[CLLocationManager alloc]init];
[loc setDelegate:self];
[loc requestWhenInUseAuthorization];
[loc requestAlwaysAuthorization];
loc.desiredAccuracy = kCLLocationAccuracyBest;
loc.distanceFilter = kCLHeadingFilterNone;
[loc startUpdatingLocation];
[loc startUpdatingHeading];
然后在.plist文件中添加隐私设置。
我仍然没有得到任何回应。