Anti-aliasing not working when resizing a UIWebView

Posted by nickcartwright on Stack Overflow See other posts from Stack Overflow or by nickcartwright
Published on 2009-02-23T15:39:57Z Indexed on 2010/03/23 6:33 UTC
Read the original article Hit count: 501

I'd like to add a Web View to my app at 60% scale (like seen in Safari in the browse other windows view):

alt text

Notice how the content looks nice and Aliased!

If I try and add the same Web view to my app:

NSURL *url = [NSURL URLWithString:@"http://www.google.co.uk?q=hello"];
NSURLRequest *request = [NSURLRequest requestWithURL:url];

UIWebView *webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, 320, 400)];
webView.delegate=self;
[webView loadRequest:request];	
[self.view addSubview:webView];

Using the following transformation:

[webView setTransform:CGAffineTransformMakeScale(0.6, 0.6)];

alt text

..the scale is really bad quality and there appears to be no anti-aliasing.

Does anyone know why this is happening or have a suggestion on how it could be fixed?

Thanks! Nick.

© Stack Overflow or respective owner

Related posts about anti-aliasing

Related posts about uiwebview