Black line appearing at bottom of UIWebView. How to remove?

Solution 1:

I had same issue and solution is given below :

  1. Set UIWebView's opaque to NO
  2. Set UIWebView's backgroundcolor to clear color.

Note : Both things provided above are necessary.


Other solutions while using above one

webView.scrollView.backgroundColor = UIColor.whiteColor()

OR

The meta to go in the head tag of HTML

<meta name="viewport" content="initial-scale=1, maximum-scale=1">