0

I am using UITableView without setting any background color but when I upgrade from iOS6 to iOS7 I found that UITableView misbehaves. The problem is its background color.

Mert Buran
  • 2,989
  • 2
  • 22
  • 34
Stalin Pusparaj
  • 741
  • 9
  • 11

3 Answers3

0

You need to set the tableview background color as below

tableView.backgroundView = nil; 
tableView.backgroundColor = [UIColor redColor];
manujmv
  • 6,450
  • 1
  • 22
  • 35
0

In iOS7 UITableView default background color is clearColor. So you can change it as following way by adding in viewDidLoad method :

self.tableView.backgroundColor = [UIColor yellowColor];

Here is the good reference

UITableViewCell show white background and cannot be modified on iOS7

Community
  • 1
  • 1
Divya Bhaloidiya
  • 5,018
  • 2
  • 25
  • 45
0

Try to set its background color after the table view becomes visible.

Mert Buran
  • 2,989
  • 2
  • 22
  • 34