@@ -46,25 +46,27 @@ -(UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)
4646
4747-(void )tableView : (UITableView *)tableView willDisplayCell : (UITableViewCell *)cell forRowAtIndexPath : (NSIndexPath *)indexPath
4848{
49- if (indexPath.section == 1 && indexPath.row == 0 ) {
50- cell.separatorInset = UIEdgeInsetsMake (0 .f , cell.bounds .size .width , 0 .f , 0 .f );
51- return ;
52- }
53-
54- // Remove seperator inset
55- if ([cell respondsToSelector: @selector (setSeparatorInset: )]) {
56- [cell setSeparatorInset: UIEdgeInsetsZero];
57- }
58-
59- // Prevent the cell from inheriting the Table View's margin settings
60- if ([cell respondsToSelector: @selector (setPreservesSuperviewLayoutMargins: )]) {
61- [cell setPreservesSuperviewLayoutMargins: NO ];
62- }
63-
64- // Explictly set your cell's layout margins
65- if ([cell respondsToSelector: @selector (setLayoutMargins: )]) {
66- [cell setLayoutMargins: UIEdgeInsetsZero];
67- }
49+ [tableView addLineforPlainCell: cell forRowAtIndexPath: indexPath withLeftSpace: kPaddingLeftWidth ];
50+
51+ // if (indexPath.section == 1 && indexPath.row == 0) {
52+ // cell.separatorInset = UIEdgeInsetsMake(0.f, cell.bounds.size.width, 0.f, 0.f);
53+ // return;
54+ // }
55+ //
56+ // // Remove seperator inset
57+ // if ([cell respondsToSelector:@selector(setSeparatorInset:)]) {
58+ // [cell setSeparatorInset:UIEdgeInsetsZero];
59+ // }
60+ //
61+ // // Prevent the cell from inheriting the Table View's margin settings
62+ // if ([cell respondsToSelector:@selector(setPreservesSuperviewLayoutMargins:)]) {
63+ // [cell setPreservesSuperviewLayoutMargins:NO];
64+ // }
65+ //
66+ // // Explictly set your cell's layout margins
67+ // if ([cell respondsToSelector:@selector(setLayoutMargins:)]) {
68+ // [cell setLayoutMargins:UIEdgeInsetsZero];
69+ // }
6870}
6971
7072-(void )tableView : (UITableView *)tableView didSelectRowAtIndexPath : (NSIndexPath *)indexPath {
0 commit comments