I have a static UITableView
and want to hide a table cell (exactly I want to hide the datepicker in the cell). I want to do this in the heightForRowAtIndexPath
method:
public override float GetHeightForRow (UITableView tableView, NSIndexPath indexPath)
{
float height = this.TableView.RowHeight;
if (indexPath.Row == 5 || indexPath.Row == 7) {
height = 0.0f;
}
return height;
}
When I'm doing this the content of the cell overlaps with the other content. In my case the datepicker takes the whole screen. The same goes for labels and so on. Also it seems that the separator line is still there.
How can I remove or hide a cell with it's content temporarily?
You don't have to provide a C#
solution. I will translate it by myself. BTW: I'm using iOS 7.1