基于 JavaScript 的 iPhone UI 框架

发布于 2024-09-28 06:44:43 字数 787 浏览 0 评论 0原文

我们有一个基于推送的网络应用程序。最近,我们计划为其制作一个 iPhone 应用程序。就像 Facebook 拥有 iPhone 应用程序和网站一样。我们正在寻找一个可以让我们快速前进的 UI 框架。我翻阅了 PhoneGap 和其他一些基于 JS 的 UI 框架 此处提到。我有点不确定什么最适合我们。所以,我正在寻找您的建议。

我们的约束如下:

  • 框架应该基于 JS。我们都是网络开发人员,都希望避免学习 Objective C。

  • 框架应该支持 iPhone 的功能,就像原生应用程序一样流畅。如果没有,我们会更喜欢所有 JS 框架中最流畅的 JS 框架。因此,这是最重要的约束。

  • 它应该支持平滑滑动屏幕,支持旋转。如果它也能捕捉抖动就好了。但摇动并不优先于没有摇动支持的更好的框架。

  • 很高兴拥有——如果其他触摸屏手机也支持该框架,则只需对代码进行少量修改或无需修改。 Android 和 Symbian 就足够了。不过,我们现在的重点是 iPhone。

我有点好奇什么是开始开发的最佳选择。如果您分享您的经验以及您所使用的框架的优缺点,我将不胜感激。

谢谢
尼尚特

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.

Our constraints are as follows:

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

  • 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.

  • 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.

Thanks
Nishant

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

转角预定愛 2024-10-05 06:44:43

我一直在使用以下框架。

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

在这 3 个项目中,Sencha 是更成熟的项目,并且拥有最多的东西盒子。 Jo看起来很有前途,很可能会直接与Sencha竞争。 jQuery mobile 非常有趣,但用它来编写任何生产代码还为时过早,边缘太粗糙。 jQuery mobile 采用与其他方法不同的方法,因为它基于 html,并且它对标签上的属性进行交互以将内容转换为表格视图或菜单。

jQuery mobile 可以更快地组合在一起并让您头脑清醒,而其他两个则需要更多的思考。但一旦你弄清楚了它们就很容易了。

如果您根本不想通过网址提供网站服务而只想构建一个应用程序,那么 Appcelerator是要走的路。您用 JS 编写代码,它会为您生成原生 Android 或 iOS 应用程序。您将可以访问几乎完整的 Android/iOS api。

我已经使用 appcelerator 进行了编码,但是我不再使用它并使用上述框架之一,现在可能是 Sencha。我可以通过 PhoneGap 访问设备本机 api,对于更简单的应用程序,可以通过 url 提供跨设备的良好体验。

大约 6 个月或更短的时间内,我认为 jQuery mobile 将成为老爸......

I have been playing with following frameworks.

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

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 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.

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.

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.

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文