I am creating HTML using following code :
NSString *string = [NSString stringWithFormat:
@"<html> \n" "<head> \n"
"<style type=\"/css\"> \n"
"body {font-family: \"%@\"; font-size: %@;}\n"
"</style> \n"
"</head> \n"
"<body>%@</body> \n"
"</html>",@"Helvetica",[NSNumber numberWithInt:17],
@"<p><i>My data</p>"];
Here I am giving [NSNumber numberWithInt:17] for font size but any change in this 17 dosen’t making changes in font size of HTML.
What should I do ?
I think your problem was that you had the wrong style type –
/cssand nottext/css.