Resize images in UIWebView to viewport size

Posted by atz on Stack Overflow See other posts from Stack Overflow or by atz
Published on 2010-04-20T15:15:12Z Indexed on 2010/04/20 16:33 UTC
Read the original article Hit count: 563

Filed under:
|
|
|

I'm displaying HTML with some images inside a UIWebView in my iPhone App. When the images are wider than the viewport of the iPhone I get horizontal scrollers which I don't want because its mostly about the text not the images.

Is there a way to resize images displayed inside the UIWebView according to the width (best: even if the device is rotated)?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about iphone-sdk