[英]Grey Background above UITableView when Large Titles set
I am writing a TableView application that takes the user to a single view when selecting a cell in the table.我正在编写一个 TableView 应用程序,它在选择表格中的单元格时将用户带到一个视图。 When I swipe to go back to the TableView, I see this grey area above the TableView that minimizes as the large title appears.
当我滑动返回到 TableView 时,我看到 TableView 上方的这个灰色区域随着大标题的出现而最小化。 How do I change the color of this grey area?
如何更改此灰色区域的颜色? I've tried setting the TableView's Header background to another color but that doesn't work.
我试过将 TableView 的标题背景设置为另一种颜色,但这不起作用。 Any advice?
有什么建议吗?
TableView:表视图:
Going back:回去:
I found the fix!我找到了解决办法! To fix this issue set the NavigationBar's isTranslucent property to true
要解决此问题,请将 NavigationBar 的 isTranslucent 属性设置为 true
self.navigationController?.navigationBar.isTranslucent = true
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.