xcode 如何在 ios 中为 ipad 构建 html5 应用程序?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/8999405/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 23:05:42  来源:igfitidea点击:

How to build html5 apps for ipad in ios?

iphoneiosxcodeipadhtml

提问by user861083

I am trying to run an html5 app for ipad in ios ,i used web view also.when i run the file in web browser it works fine but i cannot build the same file in ios.Can Any Help???

我正在尝试在 ios 中为 ipad 运行 html5 应用程序,我也使用了网络视图。当我在网络浏览器中运行该文件时,它工作正常,但我无法在 ios 中构建相同的文件。可以提供任何帮助吗???

回答by Ajay Sharma

The use of framework depends on your requirements , if you are wishing to have native apps which can use more the native features of iPhone OR if for better performance, deploying on multiple platform.

框架的使用取决于您的要求,如果您希望拥有可以使用更多 iPhone 本机功能的本机应用程序,或者为了更好的性能,请部署在多个平台上。

  1. PhoneGapisn't made for developing native applications. PhoneGap gives you a better choice for sharing applications with your user. It is the way to transform your application for mobile phones (with a Web Container) and serve it to the Apple App Store and Android Market instead forcing the user to make a bookmark or a shortcut on his homescreen. PhoneGap allows you to use some of the phones features throught APIs to enhance your application.

  2. Titaniumis the choice to build native applications without skills in programming language of the mobile phone. For example Titanium takes your Javascript code, analyzes and preprocesses it and then pre-compiles it into a set of symbols that are resolved based on your applications uses of Titanium APIs. So your Javascript is compiled one-to-one into the representative symbols of the native code. UI is built by using the phones native resources.

  1. PhoneGap不是为开发本机应用程序而设计的。PhoneGap 为您提供了与用户共享应用程序的更好选择。这是将您的应用程序转换为手机(使用 Web 容器)并将其提供给 Apple App Store 和 Android Market 的方法,而不是强制用户在其主屏幕上制作书签或快捷方式。PhoneGap 允许您通过 API 使用某些电话功能来增强您的应用程序。

  2. Titanium是无需手机编程语言技能即可构建本机应用程序的选择。例如,Titanium 获取您的 Javascript 代码,对其进行分析和预处理,然后将其预编译为一组符号,这些符号根据您的应用程序对 Titanium API 的使用进行解析。所以你的Javascript被一对一编译成原生代码的代表符号。UI 是使用手机本机资源构建的。

If you are really looking to create the native App using HTML 5, than I would prefer to move with PhoneGap.

如果您真的希望使用 HTML 5 创建本机应用程序,那么我更愿意使用 PhoneGap。