【问题标题】:iPhone UITableViewCell with UIWebView inside: selection problemiPhone UITableViewCell with UIWebView inside:选择问题
【发布时间】:2010-06-08 09:37:52
【问题描述】:

我有一个 UITableView,在每个单元格中我添​​加了 3 个自定义子视图:标签、webview 和另一个标签。我遇到的问题是,当我点击一个单元格时,不是所有单元格的背景都变成蓝色,它只在 webview 周围发生变化,但 webview 仍然有白色背景。这很丑陋。有没有办法解决这个问题?

谢谢

【问题讨论】:

    标签: iphone uitableview uiwebview


    【解决方案1】:
    [theWebView setBackgroundColor:[UIColor clearColor]];
    [theWebView setOpaque:NO];
    

    对不起,我回答了我自己的问题。事实上,一位朋友帮助我解决了这个问题。将其粘贴在这里以防其他人需要。

    干杯

    【讨论】:

      猜你喜欢
      • 2014-11-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多