So I basically get an NSData of UIImage and I use a UIWebView to display it. I do it that way:
[self.view addSubview:webView];
webView.delegate = self;
webView.scalesPageToFit = YES;
webView.backgroundColor = [UIColor darkGrayColor];
I then load the picture into it like this:
NSData *image02Data = attachmentToLoad.attachment_data;
[webView loadData:image02Data MIMEType:@"image/jpg" textEncodingName:nil baseURL:nil];
And I get a result that isn't exactly what I want:

As you can see the image leaves a white bottom line down at the bottom of the UIWebView. How can I make the size of the UIWebView to be equal to that of the image?