I’ve been trying to display some images from the web in a UIWebView. What I’ve been doing is directly using the loadRequest: method on the URL, with ScalesToFit = YES and AspectFit mode to make it fit the WebView frame. This works fine on iOS5, but in iOS4 it doesn’t. In iOS4 the image appears zoomed out.
Here’s a screenshot of it in iOS5
From what I read, iOS5 comes with an integrated ScrollView, and iOS4 and earlier versions don’t. Is it because of that? If it is, how can I accomplish what I’m trying to do? I’ve tried placing the UIWebView inside a UIScrollView and setting the scalesToFit and AspectView settings, but I’m still getting the same results.
Why not just download the image first? I wrote this function for doing just that:
}