cell 點擊背景顏色 設(shè)置
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath 中設(shè)置
cell.selectedBackgroundView = [[UIView alloc] initWithFrame:cell.frame];
cell.selectedBackgroundView.backgroundColor = [UIColor redColor];
設(shè)置分割線 自定義cell 時
[self setSeparatorInset:UIEdgeInsetsMake(0, 20, 0, 0)];