iphone - Load UIImage form NSData in UIWebView and center it -
So I basically get Then I load it in the image like this: And I'm getting results that I really do not want: As you can see, the image below leaves a white bottom line beneath the Did you see this post? I think you really want 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];
NSData * image02Data = attachmentToLoad.attachment_data; [WebView load data: image02 Data MIMEType: @ "image / jpg" text encoding name: zero baseURL: zero];
UIWebView . How do I make the size of
UIWebView equal to that image?
Comments
Post a Comment