Here is my code:
CGRect frame9 = CGRectMake(392, 100, 320, 329);
UIWebView * webView = [[UIWebView alloc] initWithFrame:frame9];
[webView setBackgroundColor:[UIColor clearColor]];
NSString* htmlContentString = [NSString stringWithFormat:
@"<html>"
"<style type=\"text/css\">"
" body {background-color:transparent; font-family:Helvetica; color: #c8b981 ; font-size:18px;text-align :justify;} .titulo {background-color:transparent; font-family:Helvetica; color: #42382b ; font-size:11px;}"
"</style>"
"<body>"
"<p class = titulo > %@ </p>"
"<p>%@</p>"
"<p2 { background-color:transparent; font-family:Helvetica; color: #42382b ; font-size:11px;text-align :left};> %@ </p2>"
"<p>%@</p>"
"<h2 style =background-color:transparent; font-family:Helvetica; color: #42382b ; font-size:11px;text-align :left;> %@ </h2>"
"<p>%@</p>"
"</body></html>",@"A LA VISTA", vino.vista,@"POR LA NARIZ" ,vino.nariz,@"AL PALADAR" , vino.paladar];
[webView loadHTMLString:htmlContentString baseURL:nil];
webView.backgroundColor = [UIColor clearColor];
[webView setOpaque:NO];
webView.scrollView.bounces = NO;
[subview addSubview:webView];
My intention is to apply specific styles for the Body and Titles in my HTML content, but I'm facing issues achieving this. Any insights would be appreciated.
Thank you.