0

我正在编写一个在 UITableview 中使用索引列表的屏幕,它在 iP8 上运行良好,在暗模式下运行良好。我的深色变成了灰色(默认不是黑色)。

但是从没有物理主页按钮的 iPX 及更高版本开始,它在表格视图的右下角有问题。该区域的颜色为黑色,与我设置的 sectionIndexBackgroundColor 为灰色的 sectionIndexBackgroundColor 不同。我在谷歌上搜索过,但我没有找到解决它的方法。你知道如何解决吗?

查看我在 iP8 和 iPX 上拍摄的图像。

这是我在 UITableview 中为 sectionIndex 设置背景的代码。

    tableView.sectionIndexColor = UIColor.itemShoutWho
    tableView.sectionIndexBackgroundColor = UIColor.bgIndexSection
    tableView.sectionIndexTrackingBackgroundColor = UIColor.bgIndexSection 

太感谢了。

4

0 回答 0