Change background of a UITableViewCell

September 8, 2008    Programming Snippets

I was asked this question by a co-worker on how to do this. My first answer was when you init the cell just set the backgroundColor but that did not work at all.

If you followed my other tutorials and have a custom UITableViewCell open that file and in the initWithFrame method you want the following

MyContentView.backgroundColor = [UIColor redColor];



comments powered by Disqus