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

一个人想着一个人 提交于 2019-11-30 16:53:45

问题


I want to test a website to see how it works with the iPhone but I don't own an iPhone or an iPod touch. Is there a way I can test how the site works on them without owning one?

What I'm really after is fixing how Stackoverflow's WMD markdown editor works on the iPhone. I hear that the hyperlink and image prompts are created too high. I think I know how to fix that but it's pretty tough to develop blind.


回答1:


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.




回答2:


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.




回答3:


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




回答4:


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




回答5:


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/



来源:https://stackoverflow.com/questions/510278/is-there-a-way-to-test-a-web-site-on-the-iphone-without-an-iphone

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