// 这是全部去掉
_tableviewitem.separatorStyle = UITableViewCellSeparatorStyleNone;
//这个是指定去掉
_tableviewitem.tableFooterView = [[UIView alloc] initWithFrame:CGRectZero];//在创建tableview那里
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
//只保留前5行的下划线
if (indexPath.row>5) {
cell.separatorInset = UIEdgeInsetsMake(0,fDeviceWidth, 0, 0);
}
}