Need API to customize background color of the view above table header search bar

Originator:an00na
Number:rdar://19948197 Date Originated:24-Feb-2015 08:42 PM
Status:Open Resolved:
Product:iOS SDK Product Version:8.3
Classification:Feature (New) Reproducible:Not Applicable
 
Summary:
Following the canonical usage of UISearchController, I set its searchBar as UITableView.tableHeaderView. There is a view filling the space above search bar while the table view is pulled down. There is no public API to set this view’s background color, which is ugly on a table view with dark background color. See the screenshot in attachment. 

This is a very old issue. Developers have been using all kinds of hacks to work around it:
1. http://stackoverflow.com/questions/1114587/different-background-colors-for-the-top-and-bottom-of-a-uitableview
2. http://stackoverflow.com/questions/1166236/light-gray-background-in-bounce-area-of-a-uitableview

We need an public API to do it properly.

Steps to Reproduce:
.

Expected Results:
.

Actual Results:
.

Notes:
.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!