ios - setZoomScale not working for UIWebView -


I have an image that I'm displaying in the html in the webview, I set the scale Page Feat to Yes I am because the image is huge .. but it is making a very small image, then try to set up zoomscale, but this dose is nothing ..

I hope someone sets me Can help to make the image inside the UIWebView fit in the width of the phone

  - (zero ViewDidload {[Super Viewedload];  

Any help would be appreciated. // Setup an additional after loading the view from your nibb WaffleSwapperWebView.scalesPageToFit = Yes; WaffleSwapperWebView.backgroundColor = [UIColor clear collar]; WaffleSwapperWebView.opaque = FALSE; NSString * path = [[NSBundle mainBundle] pathForResource: @ "Waffle-Swapper" type: @ "PNG"]; [WaffleSwapperWebView Load HTML String: [NSString stringWithFormat: @ "
body bgcolor =" white "" width = 460 & gt; & Lt; IMG src = \ "file: //% @ \" & gt; & Lt; / Body & gt; & Lt; / Html & gt; ", Path] baseURL: zero]; [WaffleSwapperWebView.scrollView set zoomscale: 5.0];}

This works in ViewDidAppear:

  - (zero) viewDidApplatform: (BOOL) Animated {[webView.scrollView set zoom Sky: 1.2 animated: TRUE]; CGPoint top = webView ScrollView.contentOffset; Top.y = 0; [WebView.scrollViewSetContentOffset: Top Animated: FALSE];}   

Tried to do this in WebViewDidFinishLoad but for some reason this has not yet been displayed

Comments