Posted by: bearc0025 | October 7, 2011

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!
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: