Binary Lion Studios

I code for fun and for food.

Transparent UITableView

To make a UITableView transparent, you just need to set it’s opaque property to NO and make the background clear.

1
2
3
4
5
6
7
8
-(void)viewDidLoad {
  [super viewDidLoad];

  // assuming you are in a view controller and it contains
  // a property called tableView
  self.tableView.opaque = NO;
  self.tableView.backgroundColor = [UIColor clearColor];
}

Now whatever you have behind your UITableView will shine through. This technique works for all other UIView subclasses too (UITextView, etc…).