How can I load desktop versions of web sites(such as google, facebook) rather than mobile versions?
How can I load desktop versions of web sites(such as google, facebook) rather than
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Edit: Disregard all this. Yaniv’s right. Just load an
NSMutableURLRequestto theUIWebViewinstance using the- loadRequest:message and set the"User-Agent"header to whatever you want.For your information, a good choice for a desktop user-agent string is that of Chrome – it’s also WebKit-based, as Safari, so WebKit-specific extensions will work. So try setting the user-agent string to
Original post:
You can try spoofing the user agent of UIWebView but I can’t guarantee that such a fat hack will let you through the thin gate of AppStore…