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.
Asked
Active
Viewed 109 times
0

Mert Buran
- 2,989
- 2
- 22
- 34

Stalin Pusparaj
- 741
- 9
- 11
-
1What is exactly the misbehavior? – Tarek Hallak Nov 28 '13 at 10:17
3 Answers
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