我已经将背景颜色作为图像添加到uiwebview,但是它会进入Web视图的背面而不是Web视图.Web视图始终为白色视图,我无法更改它.
myView = [[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]]; myView.autoresizingMask=YES; webView = [[UIWebView alloc] init]; webView.backgroundColor=[UIColor colorWithPatternImage:[UIImage imageNamed:@"BG_Doctor.png"]]; webView.delegate = self; [myView addSubview:webView]; self.view=myView;
请帮我设置webview的背景颜色,而不是背面颜色
[webView setOpaque:NO];