I'm making a simple UIWebView
iOS app. In it, the website I want to display is displaying as the mobile version, when I want it to display as the full version.
I have this code under viewDidLoad:
NSString *fullURL = @"www.facebook.com";
NSURL *url = [NSURL URLWithString:fullURL];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url];
// [request setValue:@"Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A543a Safari/419.3" forHTTPHeaderField:@"User-Agent"];
[self.webView loadRequest: request];
The commented out code I have found makes the website display as the mobile version. Does anyone know how I could change commented line to be the desktop version? When the commented line stays commented, it still runs as the mobile version.
Thanks that would be really helpful!