2014-01-31 15 views

回答

0

改變你的WebView字體像如下

NSString *body = @"YOUR STRING"; 
NSString *htmlString = 
[NSString stringWithFormat:@"<font face='GothamRounded-Bold' size='3'>%@", body]; 
[webView loadHTMLString:htmlString baseURL:nil]; 
+0

你甚至可以做到這一點,設置字體使用this [webView stringByEvaluatingJavaScriptFromString:@「document.body.style.fontFamily ='GothamRounded-Bold'」]; – Rajjjjjj