Skip to content

UITableView backgroundColor always gray on iPad – Stack Overflow

[myTableView setBackgroundView:nil];

via UITableView backgroundColor always gray on iPad – Stack Overflow.

I ran into this problem where the view backgrounds were always gray. Confusing!

As the post stats, try one of these:

[myTableView setBackgroundView:nil];
[myTableView setBackgroundView:[[[UIView alloc] init] autorelease];

I tried the first - ignoring the warnings as a test - and it worked. This is for an internal/prototype app so I'll wait to see if I get in trouble before heeding the warnings. :) 

Living on the EDGE!