I have several sections in a uitableview
as shown here:
How do I hide the first section header e.g. Men
.
I have several sections in a uitableview
as shown here:
How do I hide the first section header e.g. Men
.
尝试在 UITableViewSource 中覆盖 GetHeightForHeader,并返回 0 它是第一部分
- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
{
if (section == 0) return 0;
return tableView.sectionHeaderHeight;
}
在 Xamarin 中,它看起来像:
public override float GetHeightForHeader (UITableView tableView, int section)
{
if (section == 0)
return 0;
return tableView.SectionHeaderHeight;
}