title: iOS UIWebView flicker issue
body: <p>I have a UIWebView and a swipe gesture in the same screen. When I'm swiping, I am reloading the webview, because if I don't, the call to js is not being made.</p>
  
  <p>The reload works only once, <strong>I am unable to swipe again</strong>.</p>
  
  <p>When I removed <code>[self.webview reload]</code>swiping is done fine, but the UIWebView keeps flickering. It just jumps up everytime!
  I need to make a call to js everytime I swipe.</p>
  
  <p>I tried these:</p>
  
  <p><strong>Method 1:</strong></p>
  
  <pre><code>when loading webview:
   self.webview.alpha = 0;
  
  - (void)webViewDidFinishLoad:(UIWebView *)webView {
  
      [UIView beginAnimations:nil context:nil];    
      [UIView setAnimationDuration:0.30];    
      self.webview.alpha = 1;
      [UIView commitAnimations];
  }
  </code></pre>
  
  <p><strong>Method 2:</strong></p>
  
  <pre><code>  - (void)webViewDidFinishLoad:(UIWebView *)webView {
  
      [self.webview setOpaque:NO];
      self.webview.backgroundColor = [UIColor clearColor];
    }
  </code></pre>
  
  <p><strong>Method 3:</strong></p>
  
  <pre><code>- (void)viewDidLoad {
      [super viewDidLoad];
  
      [self.webview loadHTMLString:@"&lt;html&gt;&lt;body style=\"background-color:black;\"&gt;&lt;/body&gt;&lt;/html&gt;" baseURL:nil];    
  
      [self performSelector:@selector(loadWebview) withObject:nil afterDelay:0.1];
  }
  -(void)loadWebview {
  
      self.webview.delegate = self;
      self.webview.scrollView.delegate = self;
      self.webview.scrollView.bounces = NO;
      self.webview.scrollView.scrollsToTop = NO;
      [self.view addSubview:self.webview];
      pathToHtml = [[NSBundle mainBundle] pathForResource:@"mypath" ofType:@"html"];
      NSString* appHtml = [NSString stringWithContentsOfFile:pathToHtml encoding:NSUTF8StringEncoding error:nil];
      NSURL *baseURL = [NSURL fileURLWithPath:pathToHtml];
  
      [self.webview loadHTMLString:appHtml baseURL:baseURL]; 
  }
  </code></pre>
  
  <p>Need help!</p>