이 코드를 추가 할 수 있습니다. 이것은이
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
//Set height according to your condition
if (indexPath.row == 0)
{
}
else
{
}
}
하여 행의 당신의 UITableView
- (void) addFooter
{
UIView *v = [[UIView alloc] initWithFrame:CGRectZero];
[self.myTableView setTableFooterView:v];
[v release];
}
또한 설정할 수 있습니다 높이 여분의 라인을 표시하지 않습니다 그리고 당신은 당신의 UITableView
[tableview reloadData];
편집을 다시로드 할 수 있습니다 : 호출 기능 addFooter
in - (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section
하고이를 추가 할 수도
- (float)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section {
// This will create a "invisible" footer
return 0.01f;
}
당신은이 문제를 해결하고이 –
의 단지 바꾸는 셀 높이가없는 테이블이 hieght –
@NaziaJan을이 문제를 해결하는 방법을 설명해주십시오 수 있습니다 : 당신이 그 여분의 흰색 선을 제거하려면 어느 쪽이 오나요? – Rushi