Quality of images in UIWebView for iPhone4
NSBundle* mainBundle = [NSBundle mainBundle];
NSString *strAbsBundlePath = [[mainBundle resourceURL] absoluteString];
NSString* strImgFileName = @"some_image.png";
NSString* imgTag = [NSString stringWithFormat:@"
", strAbsBundlePath, strImgFileName];
As always I include two versions of the same image into the bundle:
some_image.png --- 32x32
some_image@2x.png --- 64x64
But the approach above simply makes images larger on the screen (which I don't need, because it messes up the HTML formatting) instead of improving the quality.
Is there any way to fix that?
MacBook Pro 17", 2.66 GHz i7, 4GB 1067 DDR3 RAM, OS X 10.6.4 /// iPhone 4, 32GB, iOS 4