Keep UIWebView from entering mobile site

Discussion in 'iOS Programming' started by Wellington2k, Dec 3, 2011.

  1. Wellington2k, Dec 3, 2011
    Last edited: Dec 3, 2011

    Wellington2k macrumors regular

    Joined:
    Jun 4, 2011
    #1
    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.
     
  2. jiminaus macrumors 65816

    jiminaus

    Joined:
    Dec 16, 2010
    Location:
    Sydney
    #2
    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.
     
  3. Wellington2k thread starter macrumors regular

    Joined:
    Jun 4, 2011
    #4
    Thanks, phantax!

    It worked perfectly!

     

Share This Page