Take the 2-minute tour ×

I want to set a custom background (image) to my grouped table view. In xib file I added the imageView under the table, set table's back to clearColor and it looks normal (in Xib!) But when I launch the application I see standard background

In Xib file:

enter image description here

In Application:

enter image description here

share|improve this question

1 Answer 1

up vote 2 down vote accepted
// instead of adding a UIImageView to the background
self.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"image_name"]];
self.tableView.backgroundColor = [UIColor clearColor];
share|improve this answer
yeah, thanks, it works. Strange that my code doesn't work for grouped table. –  Stas Sep 26 '12 at 9:05

Your Answer


