Mad*_*han 6 iphone background colors uiwebview
我已经将背景颜色作为图像添加到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;
Run Code Online (Sandbox Code Playgroud)
请帮我设置webview的背景颜色,而不是背面颜色
| 归档时间: |
|
| 查看次数: |
11146 次 |
| 最近记录: |