【问题标题】:iOS Tables - same code different colors on iPad vs iPhoneiOS 表格 - iPad 和 iPhone 上的相同代码不同颜色
【发布时间】:2016-04-11 14:20:27
【问题描述】:

我有一个非常奇怪的情况,我的颜色在 iPad 上看起来不像在 iPhone 上那样“粘”。

苹果手机

iPad

一切都在故事板中完成 - 所以我很困惑为什么会发生这种情况。有没有人见过类似的问题?

我似乎无法摆脱 iPad 中的白色表格行 - 这很烦人。

【问题讨论】:

    标签: ios iphone ipad uikit


    【解决方案1】:

    这是 iPad 上 UITableViewCell 的老错误。

    随便用

    - (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath {
      [cell setBackgroundColor:[UIColor clearColor]];
    }
    

    【讨论】:

      猜你喜欢
      • 2016-05-16
      • 1970-01-01
      • 1970-01-01
      • 2015-06-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-09-12
      相关资源
      最近更新 更多