Javascript 是“其他可执行代码"吗?为iOS? [英] Is Javascript an "other executable code" for iOS?

查看:20
本文介绍了Javascript 是“其他可执行代码"吗?为iOS?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Apple 的指南中,我看到:

In Apple's guidelines, I saw:

2.7 以任何方式或形式下载代码的应用将被拒绝

2.7 Apps that download code in any way or form will be rejected

2.8 安装或启动其他可执行代码的应用程序将被拒绝

2.8 Apps that install or launch other executable code will be rejected

我现在要做的是提供一个 TextView,允许用户输入 Javascript 并在 UIWebView 中运行

What I'm trying to do now is to provide a TextView that allows the users to enter Javascript and run in UIWebView by

stringByEvaluatingJavaScriptFromString:

所以我不是下载"任何代码,Javascript 不是其他"而是UIWebView 功能的一部分.

So I'm not 'downloading' any code, and Javascript is not something 'other' but part of the UIWebView's features.

在某些方面,它就像在 UIWebView 中运行常规的 UGC WebApp.

In some ways, its just like running a regular UGC WebApp in UIWebView.

我已准备好提交应用程序,但仍然担心等待 10 天后被拒绝...

I'm ready to submit the app but still worry about being rejected after a 10-day-waiting...

有谁知道这到底好不好??

Anybody knows exactly whether this is OK??

推荐答案

检查您当前的 iOS 标准协议.它可能明确允许在 UIWebView 中执行 Javascript,无论 Javascript 是否已下载或以其他方式下载.它还可能允许解释任何未下载的源代码(Javascript 或其他)(例如,作为文本输入,自去年修订协议以来,App Store 中允许使用六种左右的基本解释器).

Check your current iOS Standard Agreement. It may explicitly allow executing Javascript inside UIWebView, no matter whether the Javascript was downloaded or otherwise. It also may allow interpreting any source code (Javascript or otherwise) that isn't downloaded (e.g. entered as text, as with the half dozen or so Basic interpreters allowed in the App store since the agreement was revised last year).

这篇关于Javascript 是“其他可执行代码"吗?为iOS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆