在swift

时间:2018-05-19 13:55:08

标签: swift uitableview autolayout

这可能是一个简单的修复,但我无法弄清楚发生了什么。

我有一个UITableView,如下所示:

enter image description here

然而,当我向上滚动时,单元格在标题后面可见,如下所示:

enter image description here

我尝试在appDelegate中将导航栏更改为不透明:

    UINavigationBar.appearance().isOpaque = true

我还尝试在UITableView上编辑顶级插图但没有成功。有什么想法吗?

1 个答案:

答案 0 :(得分:0)

如果其他人有同样的问题,我只需要像这样设置UINavigationBar色调,并使其成为非半透明的:

UINavigationBar.appearance().barTintColor = colorDict[currentClerkship]
UINavigationBar.appearance().isTranslucent = false
相关问题