Hi guys, I've got this code here for a particular URL which I don't want to scale to fit on my webview, but I want all other pages to have the scale to fit function. The problem is, it doesn't do anything. I've tried switching round the scalepagestofit code snippets and it will work the other way round?
any help is appreciated!
This code is in my viewDidLoad, webView is a weak property? That's about all the details I think.
Thanks,
Tom
any help is appreciated!
Code:
if(currentURL==@"http://www.myurl.co.uk/search1.php") {
webView.scalesPageToFit=FALSE;
} else {
webView.scalesPageToFit=TRUE;
}
This code is in my viewDidLoad, webView is a weak property? That's about all the details I think.
Thanks,
Tom
Last edited by a moderator: