こんにちは私はgpsに基づいてアプリを作っています...私はそれをテストし、iphoneシミュレータ3.0で正常に動作しています。
しかし、gpsが利用できない場合、アラートを生成したい...(インターネット接続を削除するだけです)次の方法を使用しましたが、機能しませんでした...。
- (void)locationManager:(CLLocationManager *)manager didFailWithError:(NSError *)error {
NSLog(@"Error: %@", [error description]);
UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"Error getting Current Location" message:@"Please check your Internet connection" delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil, nil];
[alertView show];
[alertView release];
}
その方法を教えてください(現在動作しているiphone 3.0)
また、このアプリをiphone4にシフトするかどうかも教えてください...iphone 4にgpsの問題があることを聞いたので、尋ねます...このためにシミュレータ4.0でこれを試しました...しかし失敗しました...