1

I'm trying to figure out some layout issues with Safari Mobile 3.1.1. – I want to know whether or not I can view sites with the SDK before I commit to installing it on my Mac.

My other dumb question is… does changing the user-agent string used by desktop Safari have any affect on how it renders CSS? I understood that the UA string just announces which browser version is behind the request.

fish2000
  • 4,289
  • 2
  • 37
  • 76
wavyGravy
  • 787
  • 2
  • 6
  • 17

1 Answers1

1

I've never had a problem with either of those two things.

The UserAgent string isn't intrinsic to the version of the WebKit library, I don't think -- you can install a webkit build alongside the OS Safari and it'll work fine:

http://nightly.webkit.org/

... if you embed a UIWebView in your app, you can use whatever UserAgent string you like (see this question).

Community
  • 1
  • 1
fish2000
  • 4,289
  • 2
  • 37
  • 76
  • Thanks for your response. So you can view Safari mobile with the SDK. Can you change versions? – wavyGravy Oct 27 '10 at 18:55
  • NP. Do you mean on the device? -- it sounds like it's related to your UserAgent issue, are you sending different code to different iOS browser versions? – fish2000 Oct 27 '10 at 18:57
  • Well, I'm not sending different code yet. I'm wondering if the SDK is capable of changing browser versions. I want to test webpages for Safari mobile. – wavyGravy Oct 27 '10 at 20:00
  • Whenever I test for mobile safari, I use iphoney - http://www.marketcircle.com/iphoney/ ... the SDK itself doesn't give you access to historical versions of the WebKit engine by itself. – fish2000 Oct 28 '10 at 01:01