问题
In Apple's guidelines, I saw:
2.7 Apps that download code in any way or form will be rejected
2.8 Apps that install or launch other executable code will be rejected
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:
So I'm not 'downloading' any code, and Javascript is not something 'other' but part of the UIWebView's features.
In some ways, its just like running a regular UGC WebApp in UIWebView.
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??
回答1:
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).
回答2:
Interpreting it this way would disqualify, for example, all apps that use Facebook Connect, which shows a dialog in a web view and there's at least some Javascript in it.
So you should be fine.
来源:https://stackoverflow.com/questions/7066642/is-javascript-an-other-executable-code-for-ios