I want to autozoom my webview's scrollview from my code .
I am sharing my code please help me out.
webView.contentMode = UIViewContentModeScaleAspectFill | UIViewContentModeScaleAspectFit|UIViewContentModeScaleToFill
;
webView.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth;
webView.scalesPageToFit = YES;
webView.autoresizesSubviews = YES;
[webView stringByEvaluatingJavaScriptFromString:@"increaseMaxZoomFactor()"];
[webView.scrollView zoomToRect:CGRectMake(300, 300, 300, 300) animated:YES];
Please help me out Thanks in advance
Just this one line work the tricks for me
webView.scalesPageToFit = NO;