Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 10 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(4)
你不能。
No, you cannot.
正如 Apple iPhone SDK 使用条款中明确指出的那样,任何应用程序都不能运行非本机代码。 这意味着,除其他外,没有插件。 完全没有。 不适用于 Safari,不适用于您自己的应用程序。
As is clear in Apple's terms of use with the iPhone SDK, no non-native code can be run by any application. This means, among other things NO PLUGINS. At all. Not for Safari, not for your own application.
对于具有 Cydia 的设备,您可以构建 MobileSubstrate 插件。 此类插件的一个示例是 DHowett 的 Safari 下载管理器。
For devices that have Cydia, you can build a MobileSubstrate plugin. An example of such a plugin is DHowett's Safari Download Manager.
您还可以创建一个 Safari Web 插件,它加载自定义 UIView 以根据 MIME 类型显示内容。
http://iphonedevwiki.net/index.php/Internet_Plug-Ins
You could also create a Safari webplugin, which loads a custom UIView to display content based on MIME types.
http://iphonedevwiki.net/index.php/Internet_Plug-Ins