Iphone WebApp开发框架

■IUI http://code.google.com/p/iui/ 是一个为IPhone等设备定制的css和js框架,可以用web来实现Iphone app的效果,你还可以学到IPhone上的safari的独特的地方。
■http://iwebkit.net/ 是一个很强大的框架,可以从 http://iwebkit.net/gallery 看它的 Gallery
■http://webapp-net.com/ 也是一个类似的框架,http://demo.webapp-net.com/ 看它的demo, 它的动画效果在chrome中也能展现!
■http://phonegap.com/ 也相当不错,特色是支持iPhone, Android, Palm, Symbian 和 Blackberry,它其实是一个xcode的库,需要编译成app来支持其特性。另一方面说,这个库实现的才是一个真正的app,其他的多是web而已。
■http://www.jqtouch.com/ 有很多人推荐这个,它的demo一定会让你喜欢,缺点是文档比较少。
■这么多东西,一时间看不过来,尽快搞清楚原理才是正道,oreilly 居然还有一本书专门讲用html, css, javascript 来实现Iphone app,就叫做Building iPhone Apps with HTML, CSS, and JavaScript, 点击http://building-iphone-apps.labs.oreilly.com/index.html 可以在线阅读,也可以从http://www.stopdownloading.com/book/402/ 下载pdf 版本
■当然,最后不要忘了Apple的Dashcode。

测试 web apps的环境
If you’ve been testing all your web pages locally on your personal computer, you won’t be able to view them on your iPhone without setting up a server. You have a few choices:

•Host your web pages on a web server (your Internet Service Provider likely offers a complimentary web hosting service) and connect to that server from your iPhone.

•Host your web pages on a web server running on your computer, and connect to that web server from your iPhone. This only works when your iPhone and your computer are on the same WiFi network.

•If you don’t have an iPhone, you can simulate one using Safari. In Safari’s advanced preferences, enable the Develop menu, then select Develop→User Agent and choose the version of Mobile Safari you want to simulate.

This chapter is set up so that you can try the examples as you read through it. So no matter which option you choose for viewing the web pages, try reloading them in a browser (preferably the iPhone browser) each time you add something new, and save one of the sample files.

posted @ 2011-10-13 15:17  harvey.ding  阅读(415)  评论(0)    收藏  举报