UITableView的BackgroundView的description如下
The background view of the table view. | |
| A table view’s background view is automatically resized to match the size of the table view. This view is placed as a subview of the table view behind all cells , header views, and footer views. You must set this property to nil to set the background color of the table view. |
self.tableView.backgroundView = nil;
self.tableView.backgroundColor = [UIColor colorShortCutWithRed:242
green:247
blue:250];