从 1 周开始,如果我的 gps 应用程序无法检索信号(例如:在我家进行测试),我不会收到任何警报。我已经以这种方式设置了我的错误通知
- (void)locationManager:(CLLocationManager *)manager didFailWithError:(NSError *)error { NSString *errorType = (error.code == kCLErrorDenied) ?
@"Access Denied" : @"Errore sconosciuto";
UIAlertView *alert = [[UIAlertView alloc]
initWithTitle:@"Errore recuperando la Location"
message:errorType
delegate:nil
cancelButtonTitle:@"Okay"
otherButtonTitles:nil];
[alert show];
[alert release];
}
出于什么原因应用程序不检索数据并且不向我显示警报弹出窗口?