Non-animated change of UIWebView's zoom blurs the content

Viewed 523

I'm loading an HTML text within UIWebView. The page is loading perfectly with default zoom equal 1.0. scalesPageToFit property of UIWebView is set to YES, so the page could be zoomed in/out with pinch gestures. What I want to do is to set the initial webView's content zoom to 2.0.

I tried this code:

webView.scrollView.zoomScale = 2.0;

But the content appears blurred, and web view re-render the content without the blur as soon as I start the pinch zooming with gesture.

FYI, the animated version of the setter:

[webView.scrollView setZoomScale:2.0 animated:YES];

displays the content text correctly, with proper zoom and not blurred, but I don't want to animate the changes of the zoom.

2 Answers
Related