Different background colors for the top and bottom of a UITableView
- by Aaron Brethorst
If you look at your Inbox in iPhone OS 3.0's Mail app, you'll see that swiping down displays a grayish background color above the UISearchBar.
Now, if you scroll down to the bottom of the table, you'll see that the background color at that end is white.
I can think of a couple ways of solving this problem, but they're pretty hacky:
Change the table view's background color depending on the current scrollOffset by overriding -scrollViewDidScroll:
Give the UITableView a clear background color and then set its superview's backgroundColor to a gradient pattern image.
Does anyone know what the "best practice" solution is for this problem? thanks.