1 //隱藏UITableViewCell的分隔線 2 [self.tableViewList setSeparatorStyle:UITableViewCellSeparatorStyleNone]; 3 //自定義cell選中時的背景色 4 cell.selectedBackgroundView = [[UIView alloc]init]; 5 cell.selectedBackgroundView.backgroundColor = [UIColor colorWithRed:228/255.0 green:246/255.0 blue:255/255.0 alpha:1.0];