0

我需要展开和折叠行。单击标题时,调用方法handleExpandClose。为了删除行,我有这个:

public void handleExpandClose()
{
    var paths = new NSIndexPath[RowsInSection(TableView, 0)];
    for (int i = 0; i < paths.Length; i++)
    {
        paths[i] = NSIndexPath.FromItemSection(i, 0);
    }

    TableView.DeleteRows(paths, UITableViewRowAnimation.Fade);
}

其实我明白了:

在此处输入图像描述

4

0 回答 0