我只是想有一个分组 TableView 而不绘制自动绘制的侧面部分索引部分。
我只能找到
tblProducts.SectionIndexMinimumDisplayRowCount = 1000000000;
但这只是不绘制部分索引,但它仍然保留它的空间。
最佳答案
参见 UITableViewSource.SectionIndexTitles Method
上面的方法返回一个标题数组,作为索引显示在table view上
,你只需要返回null
,SectionIndex永远不会出现。
public override String[] SectionIndexTitles (UITableView tableView)
{
return null;
}
关于ios - 在 TableView Xamarin.iOS 中删除部分索引,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48910576/