【发布时间】:2011-04-01 03:18:23
【问题描述】:
我已将背景颜色作为图像添加到 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 而不是它的背面
【问题讨论】:
标签: iphone colors uiwebview background