删除表视图Xamarin.iOS中的Section Index

时间:2018-02-21 16:15:43

标签: ios xamarin.ios

我只想要一个分组的表视图而不绘制自动绘制的侧面索引部分。

我只能找到

tblProducts.SectionIndexMinimumDisplayRowCount = 1000000000;

但这只是不绘制部分索引,但它仍然保留了它的空间。

1 个答案:

答案 0 :(得分:1)

请参阅UITableViewSource.SectionIndexTitles Method

上述方法返回an array of titles to be displayed as an index on the table view,您只需要返回null,就不会出现SectionIndex。

public override String[] SectionIndexTitles (UITableView tableView)
{
    return null;
}