问题
I'm planning to develop my first mobile app and wanted to leverage my skills as a web developer. Thus, I started to look at PhoneGap. In the process, I realized that I probably should use some sort of UI framework. It seems that jQuery Mobile has speed issues. Sencha Touch 2 supposedly is faster. So, I figured I should use PhoneGap + Sencha Touch 2.
However, it's seems to be that Sencha Touch 2 is not a UI framework. It seems to be something similar to PhoneGap. I might be heading in the wrong direction here.
Questions:
- Is it a good idea to combine PhoneGap and Sencha Touch 2?
- Are there other UI frameworks worth looking at?
回答1:
Well, Sencha Touch is totally different from PhoneGap.
PhoneGap in a nutshell gives you javascript APIs which access native apis on many mobile platform.
Sencha Touch 2 is essentially a cross-platform mobile web framework. Although several native apis are introduced in Sencha Touch 2, please note that it's not the most important thing which makes ST2 outstanding. ST2 is best known for its solid and flexible class system, rapid mobile-web application development (then probably packaged as a native app), and robust UI customization as it utilizes SASS well.
It seems you are new to ST2, so please read the following articles carefully:
http://docs-origin.sencha.com/touch/2.2.1/#!/guide/getting_started
http://docs-origin.sencha.com/touch/2.2.1/#!/guide/first_app
And especially you have to understand this article thoroughly if you want to get the most important concepts of the class system.
http://docs-origin.sencha.com/touch/2.2.1/#!/guide/class_system
来源:https://stackoverflow.com/questions/18137594/is-sencha-touch-a-ui-framework-that-can-or-should-be-used-with-phonegap