基于JavaScript的iPhone UI框架 [英] JavaScript based iPhone UI framework

查看:124
本文介绍了基于JavaScript的iPhone UI框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个基于推送的网络应用程序。最近,我们计划为它制作一个iPhone应用程序。就像Facebook有iPhone应用程序以及网络存在一样。我们正在寻找可以让我们快速前进的UI框架。我已经浏览了 PhoneGap 并结合其他基于JS的UI框架这里提到。我有点不确定什么能最适合我们。所以,我正在寻找你的建议。

We have a push based web-application. Recently, we planned to make an iPhone app for it. Much like Facebook has it's iPhone application as well as web presence. We are looking for a UI framework that can get us going quickly. I've leafed through PhoneGap and couple other JS based UI frameworks mentioned here. I am bit unsure what can suit us the best. So, I am looking for your suggestions.

我们的约束条件如下:


  • 框架应该基于JS。我们都是web-devs,并希望避免学习Objective C.。

  • The framework should be JS based. We all are web-devs and want to avoid learning Objective C.

框架应该像本机应用程序一样顺利地支持iPhone的功能。如果没有,我们将更喜欢JS框架,它是所有JS框架中最流畅的。所以,这是最重要的约束。

Framework should support iPhone's capabiilities as smoothly as a native app does. If not, we will prefer a JS framework which is the smoothest of all JS frameworks. So, this is the most important constraint.

它应该支持平滑滑动屏幕,支持旋转。很好,如果它也可以捕获震动。但是震动并没有优先于没有摇动支持的更好的框架。

It should support smooth swipe through screens, support rotation. Nice, if it can capture shake as well. But shake does not take preference over a better framework without shake support.

很高兴 - 如果支持框架,代码很少或没有修改在其他触摸屏手机上也是如此。 Android和Symbian就足够了。但同样,我们现在专注于iPhone。

Nice to have -- with little or no modification in code, if the framework is supported on other touchscreen phones as well. Android and Symbian would be suffice. But again, we are focused on iPhone for now.

我有点好奇知道什么是最好的选择开始开发。如果您与您使用的框架的优缺点分享您的经验,我将感激不尽。

I am a bit curious to know what can be the best choice to start development with. I will be thankful if you share your experience with pros-and-cons of the framework that you have used.

谢谢 -
Nishant

Thanks
Nishant

推荐答案

我一直在使用以下框架。

I have been playing with following frameworks.

  • Jo
  • Sencha Touch
  • jQuery Mobile

这些用于提供基于Web的移动网站,然后可以将它们转换为Android应用程序或iOS使用 PhoneGap

These are for serving Web based mobile sites, they can then in turn be made into Apps for Android or iOS using PhoneGap

3,Sencha是一个更成熟的项目,开箱即用的东西最多。乔看起来非常有前途,可能会直接与Sencha竞争。 jQuery mobile非常有趣,但是到目前为止,用它做任何生产代码还是很早,边缘太粗糙了。 jQuery mobile采用与其他方法不同的方法,因为它是基于html的,它将标签上的属性混合在一起,将事物转化为tableviews或菜单。

Of the 3, Sencha is the more mature project and has the most things out of the box. Jo looks very promising and would probably directly compete with Sencha. jQuery mobile is very interesting but just far to early to do any production code with it, too rough around the edges. jQuery mobile takes a different approach to the others as it is html based and it interperates the attributes on tags to turn things into tableviews or menus.

jQuery mobile可以更快地进行黑客攻击并开始理解,其他两个需要更多思考。但是一旦你弄清楚它就足够了。

jQuery mobile is quicker to hack together and get your head around, where the other two take a little bit more thinking. But once you figure them out its easy enough.

如果你不想通过网址提供网站,只想建立一个应用程序,那么 Appcelerator 是要走的路。您在JS中编写代码,它可以为您创建原生的Android或iOS应用程序。您将可以访问几乎完整的Android / iOS API。

If you don't want to serve the site via a url at all and want to just build an app then Appcelerator is the way to go. You write code in JS and it makes native Android or iOS apps for you. You will get access to pretty much the full Android/iOS api.

我已使用appcelerator编码,但我不再使用它并使用上述之一框架,可能只是Sencha。我可以通过PhoneGap访问设备本机apis,更简单的应用程序通过网址提供跨设备的绝佳体验。

I have coded with appcelerator, however I am no longer going to use it and use one of the above frameworks, probably Sencha for just now. I can get access to the device native apis via PhoneGap and for simpler apps give a great experience cross device via a url.

大约6个月或更早,我认为jQuery mobile将成为爸爸......

In about 6 months, or sooner, I think jQuery mobile will be the daddy...

这篇关于基于JavaScript的iPhone UI框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆