我应该用Sencha Touch或Native编写我的应用程序吗? [英] Should I write my app with Sencha Touch or Native?
问题描述
随着Sencha Touch的最新更新,它看起来越来越像iPhone甚至iPad的原生应用程序。目前仍有许多差异,文档有点缺乏。
With the recent updates to Sencha Touch, it's looking more and more like a native app for iPhone and even iPad. There are still many differences and the documentation is a little lacking at the moment.
我的问题是,鉴于我已经完全有能力在Objective C中创建本机应用程序,我应该切换到Sencha Touch和PhoneGap,还是开始集成这些工具?
My question is, given that I am already fully capable of creating native app in Objective C, should I switch to Sencha Touch and PhoneGap, or start integrating those tools?
有什么优缺点?
编辑:
感谢您的见解。我的一位合作伙伴在周末写了他们的意见,其中有一些想法没有在这里提到: Web vs Native:你应该怎么写你的应用程序?
Thanks for the insightful points. One of my partners wrote up their opinion over the weekend with some ideas that haven't been mentioned here: Web vs Native: How Should You Write Your App?
推荐答案
优点:
- 更容易移植到其他平台。
- 如果应用程序不需要任何本机API,您可以在App Store外部分发。
缺点:
- 滚动仍然没有对任何基于网络的触摸框架都感觉非常正确。
- 较慢(硬件加速的CSS动画有帮助,但它不像Core Animation那么灵活)。
- 缺乏对本机硬件和操作系统集成的完全访问权限(PhoneGap提供了一些,但不是所有内容),例如:
- 推送通知。
- 本地通知。
- 后台位置更新(包括重要位置监控) ()
- Scrolling still doesn't feel quite right with any of the web-based touch frameworks.
- Slower (hardware-accelerated CSS animations help, but it's not nearly as flexible as Core Animation).
- Lacks full access to native hardware and OS-integration (PhoneGap provides some, but not everything), such as:
- Push notifications.
- Local notifications.
- Background location updates (including significant location monitoring).
这篇关于我应该用Sencha Touch或Native编写我的应用程序吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!