0
votes

I have a simple UIWebView in a UIScrollView for the sake of zoom capability. The HTML inside UIWebView is displayed fine, unless I start zooming in, when it gets fuzzy. Now, the web page is basically text. But UIScrollView handles the whole UIWebView a static image, apparently, and so, by getting bigger, it loses its clarity and resolution.

I have seen some posts, saying that there is no solution for it, but I still doubt it. Safari can do it. So, there should be a way.

Any help? Thanks.

2

2 Answers

1
votes

You don't need to put the UIWebView in a UIScrollView. It handles zooming automatically. Just set the scalesPageToFit property on the web view to YES.

1
votes

Remove uiscrollview and simply take uiwebview in xib and mark on scale page to fit and set the delegat of uiwebview. It handles zooming automatically.