我目前使用的是Monotouch.Dialog中概述的高级编辑表格视图,它允许用户删除和编辑表格元素的标签。有没有一种方法可以丰富tableview以实现类似于截图的效果,即更改顺序?

发布于 2012-02-29 22:29:08
您需要将这两个方法添加到DialogViewController.Source中
public override bool CanMoveRow (UITableView tableView, NSIndexPath indexPath)
{
return true;
}
public override void MoveRow (UITableView tableView, NSIndexPath sourceIndexPath, NSIndexPath destinationIndexPath)
{
tableView.MoveRow(sourceIndexPath,destinationIndexPath);
}https://stackoverflow.com/questions/9499658
复制相似问题