【发布时间】:2013-10-22 04:55:46
【问题描述】:
我将this link 添加到 UIWebview 中,因为它在 iOS 6.x 中工作正常,但在 iOS 7 中无法正常工作,我不知道为什么会这样。然后我发现了问题
[webView stringByEvaluatingJavaScriptFromString:[NSString stringWithFormat:@"document.execCommand('insertImage', false, '%@')", imagePath]];
这个功能不起作用,实际上它没有将图像标签更新到主 HTML 中。 Here is the example project 和 this is the main HTML file。请指导我哪里出了问题。
【问题讨论】:
-
看看 ios7 中的 javaScriptCore 框架。可能对你有帮助
标签: javascript html objective-c uiwebview ios7