Can you view websites with the iPhone SDK? And do different user-agent strings affect Safari CSS rendering?
I'm trying to figure out some layout issues with Saf开发者_高级运维ari 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.
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).
精彩评论