title: WebView automatic reload Xcode
body: <p>Basically I need to refresh or reload a web view every 5 or so seconds once a button is pressed.</p>
  
  <p>I have got it to load a webpage when the button is pressed. But the timer I originally wrote just crashes after the specified time. This is what I have done with the button and web view. </p>
  
  <pre><code>- (IBAction)SendGPSData:(id)sender {
      NSURL *myURL =[NSURL URLWithString:@"http://www.google.co.uk"];
      NSURLRequest *myRequest = [NSURLRequest requestWithURL:myURL];
      [myWebView2 loadRequest:myRequest];
  
  }
  </code></pre>