iphone - Load UIImage form NSData in UIWebView and center it -


So I basically get NSData of UIImage and I UIWebView I do this to display:

  [self.view addSubview: webView]; WebView.delegate = self; WebView.scalesPageToFit = Yes; WebView.backgroundColor = [UIColor darkGrayColor];   

Then I load it in the image like this:

  NSData * image02Data = attachmentToLoad.attachment_data; [WebView load data: image02 Data MIMEType: @ "image / jpg" text encoding name: zero baseURL: zero];   

And I'm getting results that I really do not want:

 Enter image details here

As you can see, the image below leaves a white bottom line beneath the UIWebView . How do I make the size of UIWebView equal to that image?

Did you see this post?

I think you really want

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -