UIWebView load html string not work in xcode 7.1

Hi

I ues UIWebView to load html string problem in xcode 7.1

my code is


NSString *html = [NSString stringWithFormat:@"<html><head><style type=\"text/css\">%@</style><meta name=\"viewport\" content=\"width=300,minimum-scale=1.0, maximum-scale=1.0\" /></head><body>%@</body></html>", style, forumReplyWSVO.content ];

webViewDisplay = tableViewCell.content;

[webViewDisplay loadHTMLString:html baseURL:nil];


webViewDisplay.layer.cornerRadius = 0;

webViewDisplay.userInteractionEnabled = YES;

webViewDisplay.multipleTouchEnabled = YES;

webViewDisplay.clipsToBounds = YES;

webViewDisplay.scalesPageToFit = NO;

webViewDisplay.backgroundColor = [UIColor clearColor];

webViewDisplay.scrollView.scrollEnabled = NO;

webViewDisplay.scrollView.bounces = NO;


[tableViewCell addSubview:webViewDisplay];


It work in xcode 7

When I upgrade to xcode 7.1, it doesn't work

Does anyone have any solution?

Did you try passing a URL for baseURL in? Even if it is just the file URL to the main bundle?

UIWebView load html string not work in xcode 7.1
 
 
Q