Skip to content

Commit

Permalink
Update the demo to work without a clear table view background
Browse files Browse the repository at this point in the history
  • Loading branch information
rhult committed Oct 2, 2012
1 parent 570921e commit 73641a4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ZKRevealingTableViewCell/ZKRevealingTableViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ - (void)viewDidLoad
// Do any additional setup after loading the view, typically from a nib.
self.objects = [NSArray arrayWithObjects:@"Right", @"Left", @"Both", @"None", nil];
self.tableView = (UITableView *)self.view;
self.tableView.backgroundColor = [UIColor clearColor];
self.tableView.rowHeight = 52.0f;
self.tableView.separatorStyle = UITableViewCellSeparatorStyleSingleLine;
}
Expand Down Expand Up @@ -164,8 +163,7 @@ - (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)ce
} else {
cell.backgroundView.backgroundColor = [UIColor colorWithRed:0.892 green:0.893 blue:0.892 alpha:1.0];
}

// cell.contentView.backgroundColor = cell.backgroundColor;
cell.textLabel.backgroundColor = cell.backgroundView.backgroundColor;
}

@end

0 comments on commit 73641a4

Please sign in to comment.