且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何从复杂级别的跨平台移动应用开发?

更新时间:2023-02-03 10:43:31

首先,在跨平台开发移动领域之前,您必须选择:

First, before jumping in the cross platform development mobile world, you have to choose between :


  • 基于HTML / JS / CSS的方法,将允许您使用框架(如Phonegap)将Web应用程序嵌入可执行文件。

  • 一个框架,允许您使用一种语言(例如,在Titanium中,您使用Javascript)进行编程,然后转为完整的本机iOS / Android应用程序。

然后下一个问题,你会想到的是:我应该使用哪一个?好了,我们已经讨论过在这里这里。总而言之,Titanium(显然)使视图更快。如果你有一个现有的网站,并希望使用相同的客户端逻辑(使用相同的js,html和css),请使用Phonegap。

Then next question that will come to your mind is : Which one should I use ? Well, we already discussed it here and here. To sum up that post, Titanium (obviously) renders the views quicker. Use Phonegap if you have an existing website and want to use the same client logic (using the same js, html and css).

最后一个问题是关于文档:For Phonegap,我认为文档很清楚,你必须使用自己的Web开发人员技能。
另一方面,对于钛,个人我没有买一本书:我发现文档容易阅读。你要做的是练习,然后,你会在Titanium框架中面临一些缺陷或缺陷。
如果你愿意,你可以在亚马逊找到几本书( like this one )。

The last question is about documentation : For Phonegap, I think that the documentation is clear and you have to use your own web developer skills. On the other hand, for Titanium, personally I didn't buy a book : I find the documentation easy to read. What you have to do is practicing and then, you will face some bugs or lacks in the Titanium framework. If you want, you can find a couple of books in Amazon (like this one).

编辑:

AFAIK,Windows Phone不在Appcelerator的路线图中。我知道社群希望这个平台,而不是黑莓(总是在测试?)。

AFAIK, Windows Phone is not in the Appcelerator's roadmap. I know that the community wishes this platform instead of BlackBerry (always in beta?).

对于您的问题,我个人更喜欢Titanium,因为它真的是用户想要的:一个真正的用户友好的体验通过足够的用户界面。想象一下,用一个代码,你可以得到两个专用的UI,而没有造型。在Phonegap,我不得不创建一个CSS的iOS和另一个Android。

For your question, personnally I prefer Titanium because it really what users want : a true user friendly experience through an adequate UI. Imagine, with one code, you can get two dedicated UI without styling. In Phonegap, I had to create a CSS for iOS and another one for Android.

这是关于UI。因为业务层是一样的。
我真的建议你尝试两个框架(或更多),并创建一个真实的应用程序与表,动画,通知,Web服务调用,地理位置,过渡和社会共享功能。然后,您可以对每个框架有一个真正的想法。

It's all about UI. Because the business layer is the same. I really recommand you to try both frameworks (or more) and create a true app with a tables, animations, notifications, web service call, geolocation, transitions and a social sharing functionnality. Then, you can have a true idea about each framework.

编辑2:

,您可以查看此网页上的一些教程。
但是,它真正帮助我改进是:

To get started with Titanium, you can have a look at some tutorials at this web page. But, what it really helped me to improve is:

  • The very complete documentation
  • The KitchenSink project hosted here. It can help to see how to put in place a good project architecture, shows some good practices, etc.

但是请注意,Titanium是一个很好的项目架构,非常适合商务应用,但限制游戏。

But beware, Titanium is really good for business apps but limited for games.