Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Wellington2k

macrumors regular
Original poster
Jun 4, 2011
131
0
Hello.

I have a UIWebView going to a certain site.

However the site I want to go to is the regular site.com not m.site.com.

Any help?

I've seen that the Skyfire app has a desktop mode, and it works fine there.
 
Last edited:
In Mac OS X, I've done the opposite of this. I mimicked the iPhone user agent string but sending setCustomUserAgent: to an WebView. Unfortunately UIWebView has such a crippled API and doesn't have this.
 
Thanks, phantax!

It worked perfectly!

+ (void)initialize {
NSDictionary *dictionnary = [[NSDictionary alloc] initWithObjectsAndKeys:mad:"Desktop", @"UserAgent", nil];
[[NSUserDefaults standardUserDefaults] registerDefaults:dictionnary];
}
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.