When loading the following html string in a uiwebview, I am trying to set the font-size as a variable value:
NSString * htmlString = [NSString stringWithFormat:@"\
<html>\
<style type='text/css'>\
hr{ height: 0;border-bottom: 2px dotted #000;}\
.Prim{color:#000000; direction:ltr;font-size:%d;font-weight:bold;}\
.Def_en{direction:ltr;font-size:%d}\
.Def_ar{direction:rtl;font-size:%d}\
</style>\
<table width='100%%'>\<tr>\<td>\
<body>\
<p style = 'font-size:%dpx;'> %@ <\p>\
</td></tr><tr><td><br><br></td></tr><tr><td align ='center'><br><img src='%@' width='60%%' \><br></td></tr></body>\
</table>\
</html>",textFontSize , authorNAme , cachePath];
This implementation didn't work as expected. What changes should be made to correctly assign the font-size attribute the value of the variable textFontSize?
Appreciate your help.