Is there a way to test a web site on the iPhone without an iPhone?

荒凉一梦 提交于 2019-11-30 19:34:55

If you own a Mac, you can download the iPhone SDK which comes with an iPhone simulator. It works not only for debugging a native app but also for browsing the web.

If you have Safari on your computer, you can enable the "Develop" menu under Preferences > Advanced > Show Develop Menu in Menu Bar.

With this enabled, you can go to Develop > User Agent, and change the user-agent string to the device you want your browser to report to the web server as. By resizing the window to the appropriate width, you can emulate what the site will look like on the iPhone.

The upside of this is that it's quick, it works on both Windows and Mac, and you don't need the iPhone SDK installed. You can also browse iPhone-specific versions of websites that catch user-agent strings directly from your PC.

The downside is obviously your Safari browser on your PC will behave quicker than on the actual device (especially in regard to javascript performance); it displays plugins and shows fonts that may not be available on the actual iPhone OS; a lack of multi-touch support and "snapping" to columns while scrolling; no auto-rotation; no multi-touch/pinch-zoom; widgets will look different; etc.

Just a notice on this old thread - we have now enabled live testing on iPhones and iPads via vnc at CrossBrowserTesting.com. Ken - Founder

There is a free app on the mac that emulates the iPhone browser: iPhoney

I don't purport to have done more than a web search, but the problem seems to be solved by several products that are "iPhone web app emulators."

http://www.testiphone.com/

http://marketcircle.com/iphoney/

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!