GPSアプリが信号を取得できなかった場合(例:自宅でテストした場合)、1週間からアラートを受け取りません。この方法でエラー通知をセットアップしました
- (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];
}
アプリがデータを取得せず、アラートポップアップを表示しないのはなぜですか?