Cocoa will always give you the best, native, access to the underlying libraries for functionality, touch and gestures especially and will run natively on the iPxxx device and use thing like the gyro and the accelerometer etc.
Sproutcore, Sencha Touch, iUi et al will be javascript emulating touch and gestures with at best limited access to the underlying libraries and may not always run natively on the iPxxx devices and may not always be able to tap into things like the accelerometer.
I think you may need to deal with both and it will depend on the applications that you are building as to which you need go for.
SproutCore (and other JS Frameworks) can be run inside of PhoneGap or similar tools to access native protocols. One big benefit of using HTML5/JS is that you can run in the browser and on other platforms such as Android and the new Chrome AppStore without having to recode your application.
发布评论
评论(2)
Sproutcore、Sencha Touch、iUi 等al 将是 javascript 模拟触摸和手势,最多只能对底层库进行有限的访问,并且可能并不总是在 iPxxx 设备上本机运行,并且可能并不总是能够利用加速计之类的东西。
我认为您可能需要同时处理两者,这取决于您正在构建的应用程序以及您需要的应用程序。
Well
Cocoa will always give you the best, native, access to the underlying libraries for functionality, touch and gestures especially and will run natively on the iPxxx device and use thing like the gyro and the accelerometer etc.
Sproutcore, Sencha Touch, iUi et al will be javascript emulating touch and gestures with at best limited access to the underlying libraries and may not always run natively on the iPxxx devices and may not always be able to tap into things like the accelerometer.
I think you may need to deal with both and it will depend on the applications that you are building as to which you need go for.
SproutCore(和其他 JS 框架)可以在 PhoneGap 或类似工具内运行以访问本机协议。使用 HTML5/JS 的一大好处是,您可以在浏览器和其他平台(例如 Android 和新的 Chrome AppStore)上运行,而无需重新编码您的应用程序。
SproutCore (and other JS Frameworks) can be run inside of PhoneGap or similar tools to access native protocols. One big benefit of using HTML5/JS is that you can run in the browser and on other platforms such as Android and the new Chrome AppStore without having to recode your application.