我已将背景色作为图像添加到 uiwebview 中,但它出现在 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 而不是它的背面
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)