0
我休耕this link添加圖像和文本到UIWebview它在iOS 6.x工作正常,但它不工作在iOS 7我不知道爲什麼會發生。然後我發現問題stringByEvaluatingJavaScriptFromString不工作在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框架。可能會幫助你 –