Reachability had lots of bugs for me.
The most trustworthy method I use in my apps and being accepted by Apple, is adding in my viewcontroler .m files this:
Code:
-(void)webView:(UIWebView *)webview didFailLoadWithError:(NSError *)error {
UIAlertView *erroralert = [[UIAlertView alloc] initWithTitle:@"Error"
message:@"No Internet connection. This application requires an Internet connection to function properly."
delegate:nil
cancelButtonTitle:@"Close"
otherButtonTitles: nil];
[erroralert show];
}
This displays a popup alert with a message that there is no active Internet connection.
You can add this code in your viewcontroller m files, just after all the #import and @synthesize commands.
Replace "webview" with the name of your UIWebView.