【问题标题】:iOS UITableViewCell accessory not showing correctly except Disclosure IndicatoriOS UITableViewCell 附件没有正确显示,除了 Disclosure Indicator
【发布时间】:2015-10-26 08:44:23
【问题描述】:

我有一个带有 UITableViewController 的项目,我配置了原型单元格,如下图所示:

我将第3~6行的原型单元格分别设置为“Disclosure Indicator”、“Detail Disclosure”、“Checkmark”和“Detail”,但似乎只有“Disclosure Indicator”有效,“Checkmark”的图标" 和 "Detail" 都不见了,只有一些空格。

起初我认为这可能是故事板的错误,但在我在设备上运行项目后,问题仍然存在。

有什么想法吗?

【问题讨论】:

    标签: ios uitableview


    【解决方案1】:

    原来是因为我将Global Tint颜色设置为White,而表格视图单元格的背景颜色也是白色的。

    之所以只有“Disclosure Indicator”起作用,是因为只有“Disclosure Indicator”不受色调颜色的影响。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-08-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多