我想在打开应用程序时显示位置权限对话框(稍后我会检索实际位置)。我可以通过执行以下操作来假装检索位置:
if(firstApplicationLaunch){
firstApplicationLaunch = NO;
locationManager = [[CLLocationManager alloc] init];
[locationManager startUpdatingLocation];
[locationManager stopUpdatingLocation];
}