0

位置更新在所有其他设备上都可以正常工作,但在 iPhone 8 plus 上却不行

下面是我正在使用的简单代码集

 _locationManager = [[CLLocationManager alloc] init];
 _locationManager.delegate = self;
 _locationManager.desiredAccuracy = kCLLocationAccuracyBest;
 _locationManager.distanceFilter = kCLDistanceFilterNone;
  [_locationManager requestAlwaysAuthorization];
 _locationManager.allowsBackgroundLocationUpdates = YES;
 _locationManager.pausesLocationUpdatesAutomatically = NO;
  [_locationManager startUpdatingLocation];
4

0 回答 0