I am making an app which has a UIWebView, in which I need to display the mobile version of an SE question, However, the page seems to have a minimum width - 768 to be precise - which just happens to be the width of the tablet itself.
This is the code I am using:
- (void)viewDidAppear:(BOOL)animated
{
[super viewDidAppear:animated];
[self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://stackoverflow.com/questions/7312584/inject-a-local-javascript-into-uiwebview"]]];
}
Nothing fancy. My web view, however, has a width just a little smaller, which means that there is just a little bit of ugly side-scrolling involved.
How do I make the mobile site ignore that I'm on an iPad (it works fine on an iPhone), and just scale to whatever size I make the UIWebView?