简体   繁体   中英

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. When I swipe to go back to the TableView, I see this grey area above the TableView that minimizes as the large title appears. 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. Any advice?

TableView:

在此处输入图片说明

Going back:

在此处输入图片说明

I found the fix! To fix this issue set the NavigationBar's isTranslucent property to true

self.navigationController?.navigationBar.isTranslucent = true

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM