title: Load UIImage form NSData in UIWebView and center it
body: <p>So I basically get an <code>NSData</code> of <code>UIImage</code> and I use a <code>UIWebView</code> to display it. I do it that way:</p>
  <pre><code>[self.view addSubview:webView];
  
  webView.delegate = self;
  webView.scalesPageToFit = YES;
  webView.backgroundColor = [UIColor darkGrayColor];
  </code></pre>
  <p>I then load the picture into it like this:</p>
  <pre><code>NSData *image02Data = attachmentToLoad.attachment_data;
  [webView loadData:image02Data MIMEType:@&quot;image/jpg&quot; textEncodingName:nil baseURL:nil];
  </code></pre>
  <p>And I get a result that isn't exactly what I want:</p>
  <p><img src="https://i.stack.imgur.com/NBrmA.png" alt="enter image description here" /></p>
  <p>As you can see the image leaves a white bottom line down at the bottom of the <code>UIWebView</code>. How can I make the size of the <code>UIWebView</code> to be equal to that of the image?</p>