Here is the code I am using:
NSString *imagePath = [[NSBundle mainBundle] resourcePath];
imagePath = [imagePath stringByReplacingOccurrencesOfString:@"/" withString:@"//"];
imagePath = [imagePath stringByReplacingOccurrencesOfString:@" " withString:@"%20"];
NSString *HTMLData = @"<meta name=\"viewport\" content=\"width=320\"/> <img src=\"image.png\" alt=\"\" width=\"320\" height=\"480\">";
[self.webView loadHTMLString:HTMLData baseURL:[NSURL URLWithString: [NSString stringWithFormat:@"file:/%@//",imagePath]]];
[self.webView setScalesPageToFit:YES];
There is a white border surrounding the image in the web view. Is there any way to just have the image take up the screen?
Edit: Added screenshot

Thanks in advance for your help.
Try adding a body tag that has its CSS margin property set to 0px. The generated HTML should look like this: