OGeek|极客世界-中国程序员成长平台

标题: iOS UITableViewCell 附件没有正确显示,除了 Disclosure Indicator [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-12 09:36
标题: iOS UITableViewCell 附件没有正确显示,除了 Disclosure Indicator

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

enter image description here

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

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

有什么想法吗?



Best Answer-推荐答案


原来是因为我将Global Tint Color设置为White,而table view cell的背景颜色也是白色的。

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

关于iOS UITableViewCell 附件没有正确显示,除了 Disclosure Indicator,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33341592/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://ogeek.cn/) Powered by Discuz! X3.4