Unusual large space on top in UIWebView iOS
This codes loads html or text into a UIWebView
const NSString* htmlFront = [NSString stringWithFormat:@"<html><body><font
color=\"000000\"><style
type=\"text/css\">body{font-family:\"helvetica\"; font-size:20px;
-webkit-text-size-adjust: auto; -webkit-touch-callout: none;
-webkit-user-select: none;}</style>"];
const NSString* htmlEnd = @"<br></body></html>";
[webViewReference loadHTMLString:[NSString
stringWithFormat:@"%@%@%@",htmlFront, referenceContent, htmlEnd]
baseURL:nil];
If plain text is loaded then it looks fine. If I load a html table this is
what happens. I get all this white space above the begining of the
content.
No comments:
Post a Comment