Apple ships an app named “Contacts” on every iOS device. On the iPhone and iPod touch, it has a very particular way of styling the area above the search bar:
How is this coloring accomplished? Specifically, how is the color only visible at the top of the table view, and not at the bottom? Setting the backgroundColor property of the table view or its backgroundView does not achieve the desired result, either.

I would just create a
UIViewwith graybackgroundColorcontaining aUISearchBarat the bottom of it, and set that to thetableHeaderViewof yourUITableView.