ios - UIWebView 与 Safari 对比

标签 ios uiwebview mobile-safari

  1. UIWebView 是否使用与 Mobile Safari 相同的 JavaScript 引擎?

  2. 此外,UIWebView 是否像 Mobile Safari 一样支持所有 HTML5 功能?我特别关注 Web SQL 和 Web Workers

  3. 如果我有一个纯粹用 HTML 和 JS 编写的应用程序,我应该将它包装在 UIWebView 中还是应该在 Mobile Safari 中打开它

  4. Apple 商店是否接受纯 HTML 和 JS 应用程序?

最佳答案

Does UIWebView use the same JavaScript engine as Mobile Safari?

UIWebView 没有 Nitro Javascript 引擎,因此它执行 JS 的速度比 Mobile Safari 慢。所以不一样。

Also, does UIWebView support all HTML5 features like Mobile Safari does? I am specifically concerned about Web SQL and Web Workers

不确定这个。可能不是。至少 UIWebView 在某些特性上比 Safari 严格一些。示例:通过JS设置宽高样式时,需要在数字后面加上'px',而Mobile Safari不需要。

If I have an app which is written purely in HTML and JS, should I wrap it up in a UIWebView or should I have it open in Mobile Safari

如果要在 App Store 上发布应用程序,则必须对其进行包装。如果没有,您真的不必这样做。

Are pure HTML and JS apps accepted on the Apple store?

如果你把它包裹起来,是的。但正如 James Webster 所写,它有一些局限性。

参见 this question在 SO 上了解有关 UIWebView 和 Safari 之间差异的更多信息。

关于ios - UIWebView 与 Safari 对比,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11648184/

相关文章:

ios - Swift 中带有列表计数的 Realm 子查询

ios - 如何在 UIWebView 中访问公共(public) Facebook 个人资料

javascript - 在 Obj C 中,如何添加 SVG 蓝图图像并渲染 UIWebView 中的数据?

ios - 如何在 ios 的 uiwebview 中水平滚动文档(pdf、ppt、docx)?

html - 如何检查我的网站在 Safari 移动版中是否正常运行?

Mobile Safari 中的 GWT 和 HTML5 视频

android - iOS Mobile Safari背景图片位置与CSS

iphone - 从核心数据中获取时, float 变为 0.0000

php - 将 php 打包到 Objective C 中

ios - prepareForSegue : is not called after tapping a row in UITableView