title: simple alert view for connection check in a web view
body: <p>dear Stackover community,</p>
  
  <p>Nearly a week I'm struggling around with the fact that I must have a connection check
  for my web view so I'm surviving the App review process by Apple :-)</p>
  
  <p>I know that I can use the Reachablity sample but for me as a beginner I would say its not smart to deal with such a code.</p>
  
  <p>I found out that it gets a bit simpler with a simple alert and code like this:</p>
  
  <pre><code>    -(void)webview:(UIWebView *)webview didFailLoadWithError:(NSError *)error {
  
  UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Error"
                                                  message:@"Can't connect. Please check your internet Connection"
                                                 delegate:self
                                        cancelButtonTitle:@"OK"
                                        otherButtonTitles:nil];
  [alert show]; }
  </code></pre>
  
  <p>My problem is that I implemented this code into the .m of my Webviewcontroller and connected the delegate to the Filesowner but the App won't be that nice to me to show me the error message :-)</p>
  
  <p>At the moment I'm using Xcode 4.2.1 with ARC enabled and storyboards.</p>
  
  <p>Would anybody please give me a step by step guide how to get this work?
  Its probably the last code I need for my App.</p>
  
  <p>Thanks in advance</p>