Spoofing user agent in WebView

Discussion in 'Mac Programming' started by geoldr, Apr 1, 2011.

  1. geoldr macrumors newbie

    Apr 1, 2011
    Hi guys, I wrote a program that loads a couple web pages, but I need them to display in the iphone style. if you go to news.google.com on your mac, as compared with you iPhone it displays a different page. I really need this page to be displayed in the iPhone version in my program. How is this possible using the WebKit ?
  2. jiminaus macrumors 65816


    Dec 16, 2010
    Quote from WebView docs.

  3. geoldr, Apr 1, 2011
    Last edited: Apr 1, 2011

    geoldr thread starter macrumors newbie

    Apr 1, 2011
    Thank you for the information, but I am having trouble implementing it. How do I link this to my webview instance?

    Never mind I have figured it out! :)

Share This Page