简体   繁体   English

iPhone:使用CSS / JavaScript开发的优点和缺点是什么?

[英]iPhone: What are the Advantages and Disadvantages of Developing with CSS/Javascript?

There are alternatives to developing for iPhone besides the native Objective-C API. 除了原生的Objective-C API,还有为iPhone开发的替代方法。 In particular, there are CSS/Javascript based solutions such as the iUi Framework . 特别是,有基于CSS / Javascript的解决方案,例如iUi Framework

Can you write successful iPhone apps with CSS/Javascript? 您可以使用CSS / Javascript成功编写iPhone应用程序吗? Does Apple approve such apps? 苹果是否批准此类应用程序? What are the advantages and disadvantages of using this approuch? 使用此附件有什么优点和缺点?

Thanks in advance. 提前致谢。

(1) You can write successful apps with CSS/Javascript. (1)您可以使用CSS / Javascript编写成功的应用程序。 The first generation of iPhone apps were all CSS/Javascript. 第一代iPhone应用程序都是CSS / Javascript。

(2) Apple routinely approves such apps. (2)苹果通常会批准此类应用。

(3) The advantages are that you can leverage your existing knowledge of CSS/Javascript to write apps without having to learn a new language and a new API. (3)优点是您可以利用现有的CSS / Javascript知识来编写应用程序,而无需学习新的语言和新的API。 The disadvantage is that such apps are not as fast, flexible and powerful as compiled apps. 缺点是此类应用程序不如编译后的应用程序快,灵活且功能强大。 It is exactly the same situation as on a non-mobile platform. 这与在非移动平台上的情况完全相同。 Webapps do not compare to apps written with the system specific API. Webapps与使用系统特定API编写的应用程序不进行比较。

However, in some cases they can be almost as good. 但是,在某些情况下,它们可能几乎一样好。 For example, if the main purpose of your app is to interact with a specific web site, then a CSS/Javascript app will probably perform just as well as a compiled one. 例如,如果您的应用程序的主要目的是与特定的网站进行交互,那么CSS / Javascript应用程序的性能可能与编译后的应用程序一样好。

There's not really any question as to the "best way". 真正的“最佳方法”没有任何疑问。 There's just a way ; 只有一种方法 that is, using UIKit and Obj-C, with OpenGL ES for games. 也就是说,将UIKit和Obj-C与OpenGL ES一起用于游戏。

There are some other approaches, but they are generally, well, not so good. 还有其他一些方法,但是它们通常不是很好。 Developing applications for the iPhone using CSS/JS is a bit half-assed; 使用CSS / JS开发iPhone的应用程序有点犹豫。 but doesn't really require apple approval; 但实际上并不需要苹果的批准; seeing as how they are just web apps. 就像它们只是网络应用一样。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用Appcelerator Titanium而不是Apple开发开发iPhone应用程序的优点/缺点 - Advantages/Disadvantages on developing iPhone apps with Appcelerator Titanium instead Apple development JQuery和Glow JavaScript库的优点和缺点是什么? - What are the Advantages and Disadvantages of JQuery and Glow JavaScript Libraries? 这两种JavaScript模式之间的优缺点是什么? - What are the Advantages and Disadvantages Between These Two JavaScript Patterns? 使用Javascript生成的网站的优点/缺点 - Advantages / Disadvantages to websites generated with Javascript 使用后端生成的Javascript或CSS有什么缺点? - What are the disadvantages of using backend generated Javascript or CSS? 使用html / css / javascript与phonegap而不是Objective C(iPhone)的缺点 - Disadvantages in using html/css/javascript with phonegap instead of objective C (iPhone) 在Javascript中调用函数时使用“()”的优点和缺点? - Advantages and disadvantages of using “()” while calling function in Javascript? 结合使用jQuery UI和AngularJS的优缺点是什么? - What are the advantages and disadvantages of using Jquery UI with AngularJS? 与官方标准相比,将JSON数据作为text / javascript提供的优点和缺点是什么:application / json? - What are the advantages and disadvantages of serving JSON data as text/javascript compared to the official standard: application/json? JavaScript:动态(动态)创建样式元素的优缺点 - JavaScript: Advantages and disadvantages of dynamically (on fly) creating style element
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM