UIWebView loadHTMLString:baseURL: doesn't loads html with internal CSS in iOS 10

Hi

I use UIWebView to load html string problem in xcode 8.0

my code is

NSString *contentString = @"<html><body><marquee>marquee content to show</marquee></body></html>";


[self.webview loadHTMLString:[NSString stringWithFormat:@"<div style='text-align:justify; font-size:25px;font-family:HelveticaNeue;color:#0000;'>%@",contentString] baseURL:nil];


It works fine on iOS 9.3 both ob Simulator and device

When I upgrade to xcode 8.0 and iOS 10.0, it doesn't work.

Does anyone have any solution?

Tried using WKWebView rather than WebView?

UIWebView loadHTMLString:baseURL: doesn't loads html with internal CSS in iOS 10
 
 
Q