// 這是全部去掉
_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);
}
}
