Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有自定义 UITableView 我将背景颜色设置为白色。这适用于黑暗和明亮模式。但在黑暗模式下,披露指标很难看到。
我试图用 cell.tint color 解决这个问题,但它不起作用。我该如何解决?
黑暗模式:
明亮模式:
如果您希望表格视图始终是浅色的,无论系统设置如何,您应该考虑overrideUserInterfaceStyle = .light在您的表格视图或视图控制器中设置以强制系统始终使用浅色样式颜色。
overrideUserInterfaceStyle = .light