我想如下從字符串加載UIWebView
:緩慢的加載一個UIWebView從字符串
NSString* plainContent = @"...";
NSString* htmlContentString = [[NSString stringWithFormat:
@"<html>"
"<style type=\"text/css\">"
"body { background-color:transparent; font-family:Arial-BoldMT; font-size:18;}"
"</style>"
"<body>"
"<p>%@</p>"
"</body></html>", plainContent] retain];
[webView loadHTMLString:htmlContentString baseURL:nil];
凡平原含量與約5鏈接和400個字符的一些簡單的HTML。我試圖在我的iPhone5上運行它,並且第一次加載它總是需要幾秒鐘的時間。有誰知道爲什麼會發生這種情況,以及如何解決這個問題?
你是正確的兄弟...謝謝你爲我工作...... :-) – Alwin