IOS UITableViewCell分割線

-(void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath{spa

    

    if ([tableView respondsToSelector:@selector(setSeparatorInset:)]) {table

        [tableView setSeparatorInset:UIEdgeInsetsZero];select

    }tab

    

    if ([tableView respondsToSelector:@selector(setLayoutMargins:)]) {void

        [tableView setLayoutMargins:UIEdgeInsetsZero];index

    }ab

    

    if ([cell respondsToSelector:@selector(setLayoutMargins:)]) {play

        [cell setLayoutMargins:UIEdgeInsetsZero];

    }

}

相關文章
相關標籤/搜索