How can you test a failure of NSURLConnection?
Also, how do you tell if it failed due to airplane mode or WiFi being turned off? In my tests, while the alert pops up telling the user they need to turn on WiFi, if they ignore it my App just sits there and spins waiting for a response.
If your connection's delegate is self, you can something like this: