8

I'm adding a UISearchBar in the header of the GroupedTableView, I have set the background color of the UITableView and the View in the interface builder to a custom color, but when running the app and scroll down the table view I got the default background color of the GroupedTableView above the search bar

Getting default background color about the search bar

Mahmoud Adam
  • 5,772
  • 5
  • 41
  • 62

2 Answers2

0

It is the background color of scroll view. Add content size to scroll view and add layouts to the search bar and table view. This should fix

Raja Reddy
  • 57
  • 1
-2

This is default color added to grouped style table view.

set tableView.backgroundColor value to the color you want.

zipzapzoop
  • 138
  • 6