UIWebView加载过程中,在页面没有加载完毕前,会显示一片空白。为解决这个问题,方法如下:
webView.backgroundColor = [UIColor clearColor];
webView.opaque = NO;
[webView setBackgroundColor:[UIColor colorWithPatternImage:[UIImage imageNamed:@"webbg.png"]]];
UIWebView加载过程中,在页面没有加载完毕前,会显示一片空白。为解决这个问题,方法如下:
webView.backgroundColor = [UIColor clearColor];
webView.opaque = NO;
[webView setBackgroundColor:[UIColor colorWithPatternImage:[UIImage imageNamed:@"webbg.png"]]];
转载于:https://my.oschina.net/u/554046/blog/628798