Search code examples
imageuitableviewuiviewbackgroundbehind

Place a background Image behind a grouped UITableView


I've a grouped UITableView which has been resized and rounded. I would like to place a view BEHIND this table.I've tried:

[self.tableView addSubview:backgroundView];
[self.tableView sendSubviewToBack:backgroundView];

but it didn't work. This is what I obtain:

rounded uitableview

I would like to have the background in place of the black space.

Any idea?


Solution

  • How about [self.tableView setBackgroundView:backgroundView];?