UIWebView frame resize does not resize the inner content...

Posted by Markus Gömmel on Stack Overflow See other posts from Stack Overflow or by Markus Gömmel
Published on 2009-12-17T15:02:20Z Indexed on 2010/06/01 2:03 UTC
Read the original article Hit count: 949

Filed under:
|
|
|

Hi,

if I change the frame of a UIWebView (scalesPageToFit property is YES), what do I have to do that the zooming level of a currently displayed webpage persists?

Let's say I have a UIWebView frame with a width of 200 pixels, and has zoomed into a website so that only one column is visible. After changing the width to 300, I still see the column with the same size, and additional space at the left and right. But what I would need is that I still only see this column, but bigger.

Any ideas what I have to do to achive this? I tried a lot of things, but nothing worked so far.

By the way, the iPhone built in Safari browser does exactly this thing (with the same website, so it's not content related) when rotating the iPhone... I see the same content, bug bigger, NOT more content as it happens with my current version of code.

Thanks for helping! Markus

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c