开发者

iPhone UITableViewCell with UIWebView inside: selection problem

开发者 https://www.devze.com 2023-01-03 04:35 出处:网络
I have an UITableView and in every cell I add 3 custom subviews: label, webview and another label. The problem I am having is that when I tap a cell, instead of all the cell\'s background changing to

I have an UITableView and in every cell I add 3 custom subviews: label, webview and another label. The problem I am having is that when I tap a cell, instead of all the cell's background changing to blue, it only changes around the webview, but the webview still has a white background. it's 开发者_如何学Govery ugly. Is the any way of fixing this?

Thank you


[theWebView setBackgroundColor:[UIColor clearColor]];
[theWebView setOpaque:NO];

Sorry, I answered my own question. In fact, a friend helped me with that one. Pasting it here in case anyone else needs it.

Cheers

0

精彩评论

暂无评论...
验证码 换一张
取 消