我已经将背景颜色作为图像添加到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的背景颜色设置为不透明,而非背后的颜色。