PeterK
PeterK

Reputation: 4301

UITableView background color iPad device does not work

The following works in the simulator but not on the device.

This works in "ViewDidLoad":

self.tableView.backgroundColor = [UIColor redColor];

This does not work in "ViewDidLoad":

self.tableView.backgroundColor = [UIColor colorWithRed:0.24 green:0.2 blue: 0.18 alpha:0];

XCODE5, Deployment Target: 6.1

I would really appreciate some help here.

Upvotes: 0

Views: 71

Answers (1)

Unheilig
Unheilig

Reputation: 16292

Yes, because you have alpha set to 0.

self.tableView.backgroundColor = [UIColor colorWithRed:0.24 green:0.2 blue: 0.18 alpha:0];

Change it to some other values other than 0.

Upvotes: 1

Related Questions