Spoofing user agent in WebView

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

  1. macrumors newbie

    Joined:
    Apr 1, 2011
    #1
    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. macrumors 65816

    jiminaus

    Joined:
    Dec 16, 2010
    Location:
    Sydney
    #2
    Quote from WebView docs.

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

    thread starter macrumors newbie

    Joined:
    Apr 1, 2011
    #3
    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