I\'m working on a project. I have plenty of UITableView
s which are set as clear color. Their views\' background color are set to my custom color and everything
I'm using Storyboard
with UITableViewControlrs
, so the most simple decision was to subclass all controllers, and add this method to parent
- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath{
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad){
cell.backgroundColor = [UIColor clearColor];
}
}