I am not able to increase the font size of webview content. I had tried to increase font-size of content contained by JSON Web-Url.
Asked
Active
Viewed 413 times
0
-
1post your code. Shortly, you can wrap your data into div and style it. – Nik Yekimov Oct 20 '14 at 10:57
1 Answers
2
-(void)webViewDidFinishLoad:(UIWebView *)webView1{
int fontSize = 20;
NSString *jsString = [[[NSString alloc] initWithFormat:@"document.getElementsByTagName('body')[0].style.webkitTextSizeAdjust= '%d%%'", fontSize] autorelease];
[webView1 stringByEvaluatingJavaScriptFromString:jsString];
}

Danial Hussain
- 2,488
- 18
- 38