didFailWithError:Error Domain=NSURLErrorDomain Code=-1011 "The operation couldn’t be completed. (NSURLErrorDomain error -1011.)" UserInfo=0x6252100 {PBHTTPStatusCode=503}
이 내가 사용하는 코드입니다 :
- (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation {
geocoder = [[MKReverseGeocoder alloc] initWithCoordinate:newLocation.coordinate];
[geocoder setDelegate:self];
[geocoder start];
[locationManager stopUpdatingLocation];
}
-(void)reverseGeocoder:(MKReverseGeocoder *)geocoder1 didFailWithError:(NSError *)error
{
UIAlertView *alert=[[UIAlertView alloc] initWithTitle:@"iBeen There" message:@"GPS can't track the location please check the internet connection." delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil];
[alert show];
[alert release];
NSLog(@"reverseGeocoder:%@ didFailWithError:%@", geocoder, error);
}
처음으로 오류 블록 (몇 번)으로 이동합니다. 아무 것도 나 빠져 나오지 않으십니까?
가능한 [iOS 4.3에서 MKReverseGeocoder/PBHTTPStatusCode = 503 오류를 처리하는 방법?] (http://stackoverflow.com/questions/5232822/how-to-deal-with-mkreversegeocoder-pbhttpstatuscode-503-errors) -in-ios-4-3) – rckoenes
나는 그 포스트를 보았다. 나는 그 포스트에서 주어진 모든 솔루션을 시도했지만 그것도 동일했다. – Srinivas
여기에 .. 어떤 해결책 ?? 감사합니다 – Frade