In my viewcontroller, I create a MKMapView object. I set the delegate to self, and in the ViewController, I implemented:
- (void)mapViewDidFailLoadingMap:(MKMapView *)mapView withError:(NSError *)error
This method gets called, but in the debugger, I see that error
has the value 0x0
This happens on the device, and in the simulator.
I need the error code, as I want to give a message for the case where internet access is unavailable, while ignoring the cases like (from the API doc) "if a request for additional map tiles comes in while a previous request for tiles is still pending" (which doesn't seem like a failure to me)